--- /dev/null
+package io.bytom.offline.exception;\r
+\r
+/**\r
+ * HTTPException wraps generic HTTP errors.\r
+ */\r
+public class HTTPException extends BytomException {\r
+ /**\r
+ * Initializes exception with its message attribute.\r
+ *\r
+ * @param message error message\r
+ */\r
+ public HTTPException(String message) {\r
+ super(message);\r
+ }\r
+\r
+ /**\r
+ * Initializes new exception while storing original cause.\r
+ *\r
+ * @param message the error message\r
+ * @param cause the original cause\r
+ */\r
+ public HTTPException(String message, Throwable cause) {\r
+ super(message, cause);\r
+ }\r
+}\r