-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37b1eaf
commit 387aef7
Showing
12 changed files
with
458 additions
and
65 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
hildr-node/src/main/java/io/optimism/common/CriticalException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package io.optimism.common; | ||
|
||
/** | ||
* The sequencer critical exception. | ||
* @author thinkAfCod | ||
* @since 0.4.1 | ||
*/ | ||
public class CriticalException extends SequencerException { | ||
|
||
/** | ||
* Instantiates a new sequencer critical exception. | ||
* | ||
* @param message the message | ||
*/ | ||
public CriticalException(String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* Instantiates a new sequencer critical exception. | ||
* | ||
* @param message the message | ||
* @param cause the cause | ||
*/ | ||
public CriticalException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
/** | ||
* Instantiates a new sequencer critical exception. | ||
* | ||
* @param cause the cause | ||
*/ | ||
public CriticalException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
hildr-node/src/main/java/io/optimism/common/ResetException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package io.optimism.common; | ||
|
||
/** | ||
* The sequencer reset exception. | ||
* @author thinkAfCod | ||
* @since 0.4.1 | ||
*/ | ||
public class ResetException extends SequencerException { | ||
|
||
/** | ||
* Instantiates a new sequencer reset exception. | ||
* | ||
* @param message the message | ||
*/ | ||
public ResetException(String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* Instantiates a new sequencer reset exception. | ||
* | ||
* @param message the message | ||
* @param cause the cause | ||
*/ | ||
public ResetException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
/** | ||
* Instantiates a new sequencer reset exception. | ||
* | ||
* @param cause the cause | ||
*/ | ||
public ResetException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
hildr-node/src/main/java/io/optimism/common/SequencerException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package io.optimism.common; | ||
|
||
/** | ||
* the sequencer exception. | ||
* @author thinkAfCod | ||
* @since 0.4.1 | ||
*/ | ||
public class SequencerException extends RuntimeException { | ||
|
||
/** | ||
* Instantiates a new sequencer exception. | ||
* | ||
* @param message the message | ||
*/ | ||
public SequencerException(String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* Instantiates a new sequencer exception. | ||
* | ||
* @param message the message | ||
* @param cause the cause | ||
*/ | ||
public SequencerException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
/** | ||
* Instantiates a new sequencer exception. | ||
* | ||
* @param cause the cause | ||
*/ | ||
public SequencerException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
hildr-node/src/main/java/io/optimism/common/TemporaryException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package io.optimism.common; | ||
|
||
/** | ||
* The sequencer temporary exception. | ||
* @author thinkAfCod | ||
* @since 0.4.1 | ||
*/ | ||
public class TemporaryException extends SequencerException { | ||
|
||
/** | ||
* Instantiates a new sequencer temporary exception. | ||
* | ||
* @param message the message | ||
*/ | ||
public TemporaryException(String message) { | ||
super(message); | ||
} | ||
|
||
/** | ||
* Instantiates a new sequencer temporary exception. | ||
* | ||
* @param message the message | ||
* @param cause the cause | ||
*/ | ||
public TemporaryException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
/** | ||
* Instantiates a new sequencer temporary exception. | ||
* | ||
* @param cause the cause | ||
*/ | ||
public TemporaryException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.