OSDN Git Service

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