mirror of
https://github.com/hexedtech/codemp-intellij.git
synced 2024-11-24 08:04:47 +01:00
feat: written java exception equivalents
This commit is contained in:
parent
6d63c8fbbb
commit
c263211cff
4 changed files with 40 additions and 0 deletions
|
@ -0,0 +1,19 @@
|
|||
package com.codemp.intellij.exceptions;
|
||||
|
||||
public class ChannelException extends CodeMPException {
|
||||
public ChannelException(String input) {
|
||||
super(input);
|
||||
}
|
||||
|
||||
public static class Send extends ChannelException {
|
||||
public Send(String input) {
|
||||
super(input);
|
||||
}
|
||||
}
|
||||
|
||||
public static class Read extends ChannelException {
|
||||
public Read(String input) {
|
||||
super(input);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.codemp.intellij.exceptions;
|
||||
|
||||
public class CodeMPException extends Exception {
|
||||
public CodeMPException(String s) {
|
||||
super(s);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.codemp.intellij.exceptions;
|
||||
|
||||
public class InvalidStateException extends CodeMPException {
|
||||
public InvalidStateException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.codemp.intellij.exceptions;
|
||||
|
||||
public class TransportException extends CodeMPException {
|
||||
public TransportException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue