OSDN Git Service

adjust structure
[bytom/bytom-java-sdk.git] / java-sdk / src / main / java / io / bytom / exception / HTTPException.java
1 package io.bytom.exception;
2
3 /**
4  * HTTPException wraps generic HTTP errors.
5  */
6 public class HTTPException extends BytomException {
7   /**
8    * Initializes exception with its message attribute.
9    * @param message error message
10    */
11   public HTTPException(String message) {
12     super(message);
13   }
14
15   /**
16    * Initializes new exception while storing original cause.
17    * @param message the error message
18    * @param cause the original cause
19    */
20   public HTTPException(String message, Throwable cause) {
21     super(message, cause);
22   }
23 }