-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
21 changed files
with
184 additions
and
130 deletions.
There are no files selected for viewing
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
package mp.code.exceptions; | ||
|
||
/** | ||
* An exception that may occur when processing network requests. | ||
*/ | ||
public abstract class ConnectionException extends Exception { | ||
protected ConnectionException(String msg) { | ||
super(msg); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
dist/java/src/mp/code/exceptions/ConnectionRemoteException.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,10 @@ | ||
package mp.code.exceptions; | ||
|
||
/** | ||
* An exception returned by the server as a response. | ||
*/ | ||
public abstract class ConnectionRemoteException extends Exception { | ||
protected ConnectionRemoteException(String msg) { | ||
super(msg); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
dist/java/src/mp/code/exceptions/ConnectionTransportException.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,10 @@ | ||
package mp.code.exceptions; | ||
|
||
/** | ||
* An exception that occurred from the underlying tonic layer. | ||
*/ | ||
public abstract class ConnectionTransportException extends Exception { | ||
protected ConnectionTransportException(String msg) { | ||
super(msg); | ||
} | ||
} |
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,13 @@ | ||
package mp.code.exceptions; | ||
|
||
/** | ||
* An exception that may occur when a {@link mp.code.BufferController} or | ||
* a {@link mp.code.CursorController} perform an illegal operation. | ||
* It may also occur as a result of {@link mp.code.Workspace#event()} and | ||
* {@link mp.code.Workspace#selectBuffer(long)}. | ||
*/ | ||
public abstract class ControllerException extends Exception { | ||
protected ControllerException(String msg) { | ||
super(msg); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
dist/java/src/mp/code/exceptions/ControllerStoppedException.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,11 @@ | ||
package mp.code.exceptions; | ||
|
||
/** | ||
* An exception that occurs when attempting to send an operation when | ||
* the worker has already stopped. | ||
*/ | ||
public class ControllerStoppedException extends ControllerException { | ||
protected ControllerStoppedException(String msg) { | ||
super(msg); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
dist/java/src/mp/code/exceptions/ControllerUnfulfilledException.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,11 @@ | ||
package mp.code.exceptions; | ||
|
||
/** | ||
* An exception that occurs when the underlying controller stopped before | ||
* fulfilling the request, without rejecting it first. | ||
*/ | ||
public class ControllerUnfulfilledException extends ControllerException { | ||
protected ControllerUnfulfilledException(String msg) { | ||
super(msg); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.