OSDN Git Service

Merge pull request #9 from Bytom/adjust_structure
[bytom/bytom-java-sdk.git] / tx-signer / src / main / java / io / bytom / offline / exception / BytomException.java
1 package io.bytom.offline.exception;\r
2 \r
3 /**\r
4  * Base exception class for the Chain Core SDK.\r
5  */\r
6 public class BytomException extends Exception {\r
7     /**\r
8      * Default constructor.\r
9      */\r
10     public BytomException() {\r
11         super();\r
12     }\r
13 \r
14     /**\r
15      * Initializes exception with its message attribute.\r
16      *\r
17      * @param message error message\r
18      */\r
19     public BytomException(String message) {\r
20         super(message);\r
21     }\r
22 \r
23     /**\r
24      * Initializes a new exception while storing the original cause.\r
25      *\r
26      * @param message the error message\r
27      * @param cause   the cause of the exception\r
28      */\r
29     public BytomException(String message, Throwable cause) {\r
30         super(message, cause);\r
31     }\r
32 }\r