diff --git a/src/exception/localException.java b/src/exception/localException.java new file mode 100644 index 0000000..868d366 --- /dev/null +++ b/src/exception/localException.java @@ -0,0 +1,5 @@ +package exception; + +public class localException extends Exception { + private static final long serialVersionUID = 12L; +} diff --git a/src/exception/remoteException.java b/src/exception/remoteException.java new file mode 100644 index 0000000..2eb7251 --- /dev/null +++ b/src/exception/remoteException.java @@ -0,0 +1,5 @@ +package exception; + +public class remoteException extends Exception { + private static final long serialVersionUID = 12L; +} diff --git a/src/localException/InternalError.java b/src/localException/InternalError.java index 43628c1..c9c4f38 100644 --- a/src/localException/InternalError.java +++ b/src/localException/InternalError.java @@ -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; } diff --git a/src/localException/ProtocolError.java b/src/localException/ProtocolError.java index 1c74a89..41f3b55 100644 --- a/src/localException/ProtocolError.java +++ b/src/localException/ProtocolError.java @@ -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; } diff --git a/src/localException/SizeError.java b/src/localException/SizeError.java index 29abc88..d579101 100644 --- a/src/localException/SizeError.java +++ b/src/localException/SizeError.java @@ -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; } diff --git a/src/localException/SocketClosed.java b/src/localException/SocketClosed.java index 3c87d7b..b3a0859 100644 --- a/src/localException/SocketClosed.java +++ b/src/localException/SocketClosed.java @@ -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; } diff --git a/src/localException/TransmissionError.java b/src/localException/TransmissionError.java index 11437ae..b6628d5 100644 --- a/src/localException/TransmissionError.java +++ b/src/localException/TransmissionError.java @@ -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; } diff --git a/src/localException/VersionError.java b/src/localException/VersionError.java index 12ec48c..f2e1502 100644 --- a/src/localException/VersionError.java +++ b/src/localException/VersionError.java @@ -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; } diff --git a/src/remoteException/EmptyDirectory.java b/src/remoteException/EmptyDirectory.java index 5d4f765..d778779 100644 --- a/src/remoteException/EmptyDirectory.java +++ b/src/remoteException/EmptyDirectory.java @@ -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; } diff --git a/src/remoteException/EmptyFile.java b/src/remoteException/EmptyFile.java index deba543..5c802a1 100644 --- a/src/remoteException/EmptyFile.java +++ b/src/remoteException/EmptyFile.java @@ -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; } diff --git a/src/remoteException/InternalRemoteError.java b/src/remoteException/InternalRemoteError.java index c3d5c57..1b9298c 100644 --- a/src/remoteException/InternalRemoteError.java +++ b/src/remoteException/InternalRemoteError.java @@ -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; } diff --git a/src/remoteException/NotFound.java b/src/remoteException/NotFound.java index 8f9d27e..c58b61e 100644 --- a/src/remoteException/NotFound.java +++ b/src/remoteException/NotFound.java @@ -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; } diff --git a/src/remoteException/ProtocolRemoteError.java b/src/remoteException/ProtocolRemoteError.java index fbc857f..c396a98 100644 --- a/src/remoteException/ProtocolRemoteError.java +++ b/src/remoteException/ProtocolRemoteError.java @@ -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; } diff --git a/src/remoteException/VersionRemoteError.java b/src/remoteException/VersionRemoteError.java index 8da9c1a..a39001f 100644 --- a/src/remoteException/VersionRemoteError.java +++ b/src/remoteException/VersionRemoteError.java @@ -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; }