feat: written java exception equivalents

This commit is contained in:
zaaarf 2023-08-19 23:42:04 +02:00
parent 6d63c8fbbb
commit c263211cff
No known key found for this signature in database
GPG key ID: 6445A5CD15E5B40C
4 changed files with 40 additions and 0 deletions

View file

@ -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);
}
}
}

View file

@ -0,0 +1,7 @@
package com.codemp.intellij.exceptions;
public class CodeMPException extends Exception {
public CodeMPException(String s) {
super(s);
}
}

View file

@ -0,0 +1,7 @@
package com.codemp.intellij.exceptions;
public class InvalidStateException extends CodeMPException {
public InvalidStateException(String message) {
super(message);
}
}

View file

@ -0,0 +1,7 @@
package com.codemp.intellij.exceptions;
public class TransportException extends CodeMPException {
public TransportException(String message) {
super(message);
}
}