added motherclass for exceptions

pull/47/head
Flavien Haas 5 years ago
parent 740e25546a
commit 05be51d604

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

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

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

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

@ -1,5 +1,9 @@
package localException; 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. */ /** 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; private static final long serialVersionUID = 12L;
} }

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save