added motherclass for exceptions

This commit is contained in:
Flavien Haas 2020-03-19 14:05:58 +01:00
parent 740e25546a
commit 05be51d604
14 changed files with 59 additions and 12 deletions

View File

@ -0,0 +1,5 @@
package exception;
public class localException extends Exception {
private static final long serialVersionUID = 12L;
}

View File

@ -0,0 +1,5 @@
package exception;
public class remoteException extends Exception {
private static final long serialVersionUID = 12L;
}

View File

@ -1,4 +1,7 @@
package localException;
public class InternalError extends Exception {
import exception.localException;
public class InternalError extends exception.localException {
private static final long serialVersionUID = 12L;
}

View File

@ -1,4 +1,7 @@
package localException;
public class ProtocolError extends Exception {
import exception.localException;
public class ProtocolError extends exception.localException {
private static final long serialVersionUID = 12L;
}

View File

@ -1,5 +1,9 @@
package localException;
import exception.localException;
/** Used on reception side when size as set in Packet is too big, and we cant store this in a int/long as usual. */
public class SizeError extends Exception {
public class SizeError extends exception.localException {
private static final long serialVersionUID = 12L;
}

View File

@ -1,4 +1,7 @@
package localException;
public class SocketClosed extends Exception {
import exception.localException;
public class SocketClosed extends exception.localException {
private static final long serialVersionUID = 12L;
}

View File

@ -1,4 +1,7 @@
package localException;
public class TransmissionError extends Exception {
import exception.localException;
public class TransmissionError extends exception.localException {
private static final long serialVersionUID = 12L;
}

View File

@ -1,4 +1,7 @@
package localException;
public class VersionError extends Exception {
import exception.localException;
public class VersionError extends exception.localException {
private static final long serialVersionUID = 12L;
}

View File

@ -1,4 +1,7 @@
package remoteException;
public class EmptyDirectory extends Exception {
import exception.remoteException;
public class EmptyDirectory extends exception.remoteException {
private static final long serialVersionUID = 12L;
}

View File

@ -1,4 +1,7 @@
package remoteException;
public class EmptyFile extends Exception {
import exception.remoteException;
public class EmptyFile extends exception.remoteException {
private static final long serialVersionUID = 12L;
}

View File

@ -1,4 +1,7 @@
package remoteException;
public class InternalRemoteError extends Exception {
import exception.remoteException;
public class InternalRemoteError extends exception.remoteException {
private static final long serialVersionUID = 12L;
}

View File

@ -1,4 +1,7 @@
package remoteException;
public class NotFound extends Exception {
import exception.remoteException;
public class NotFound extends exception.remoteException {
private static final long serialVersionUID = 12L;
}

View File

@ -1,4 +1,7 @@
package remoteException;
public class ProtocolRemoteError extends Exception {
import exception.remoteException;
public class ProtocolRemoteError extends exception.remoteException {
private static final long serialVersionUID = 12L;
}

View File

@ -1,4 +1,7 @@
package remoteException;
public class VersionRemoteError extends Exception {
import exception.remoteException;
public class VersionRemoteError extends exception.remoteException {
private static final long serialVersionUID = 12L;
}