From 2a4ad8316fce095cd9e69f0e85cc9c5f184ea5d0 Mon Sep 17 00:00:00 2001 From: flavien Date: Thu, 19 Mar 2020 14:26:39 +0100 Subject: [PATCH] rename exceptions to accomodate java's nomenclature --- src/exception/{localException.java => LocalException.java} | 2 +- src/exception/{remoteException.java => RemoteException.java} | 2 +- src/localException/InternalError.java | 4 ++-- src/localException/ProtocolError.java | 4 ++-- src/localException/SizeError.java | 4 ++-- src/localException/SocketClosed.java | 4 ++-- src/localException/TransmissionError.java | 4 ++-- src/localException/VersionError.java | 4 ++-- src/remoteException/EmptyDirectory.java | 4 ++-- src/remoteException/EmptyFile.java | 4 ++-- src/remoteException/InternalRemoteError.java | 4 ++-- src/remoteException/NotFound.java | 4 ++-- src/remoteException/ProtocolRemoteError.java | 4 ++-- src/remoteException/VersionRemoteError.java | 4 ++-- 14 files changed, 26 insertions(+), 26 deletions(-) rename src/exception/{localException.java => LocalException.java} (60%) rename src/exception/{remoteException.java => RemoteException.java} (59%) diff --git a/src/exception/localException.java b/src/exception/LocalException.java similarity index 60% rename from src/exception/localException.java rename to src/exception/LocalException.java index 868d366..5c115d5 100644 --- a/src/exception/localException.java +++ b/src/exception/LocalException.java @@ -1,5 +1,5 @@ package exception; -public class localException extends Exception { +public class LocalException extends Exception { private static final long serialVersionUID = 12L; } diff --git a/src/exception/remoteException.java b/src/exception/RemoteException.java similarity index 59% rename from src/exception/remoteException.java rename to src/exception/RemoteException.java index 2eb7251..cfb2cd7 100644 --- a/src/exception/remoteException.java +++ b/src/exception/RemoteException.java @@ -1,5 +1,5 @@ package exception; -public class remoteException extends 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 c9c4f38..08326f9 100644 --- a/src/localException/InternalError.java +++ b/src/localException/InternalError.java @@ -1,7 +1,7 @@ package localException; -import exception.localException; +import exception.LocalException; -public class InternalError extends 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 41f3b55..8a8be52 100644 --- a/src/localException/ProtocolError.java +++ b/src/localException/ProtocolError.java @@ -1,7 +1,7 @@ package localException; -import exception.localException; +import exception.LocalException; -public class ProtocolError extends 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 d579101..cb927bc 100644 --- a/src/localException/SizeError.java +++ b/src/localException/SizeError.java @@ -1,9 +1,9 @@ package localException; -import exception.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.localException { +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 b3a0859..ceaac40 100644 --- a/src/localException/SocketClosed.java +++ b/src/localException/SocketClosed.java @@ -1,7 +1,7 @@ package localException; -import exception.localException; +import exception.LocalException; -public class SocketClosed extends 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 b6628d5..38fca4f 100644 --- a/src/localException/TransmissionError.java +++ b/src/localException/TransmissionError.java @@ -1,7 +1,7 @@ package localException; -import exception.localException; +import exception.LocalException; -public class TransmissionError extends 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 f2e1502..c0cb7d4 100644 --- a/src/localException/VersionError.java +++ b/src/localException/VersionError.java @@ -1,7 +1,7 @@ package localException; -import exception.localException; +import exception.LocalException; -public class VersionError extends 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 d778779..12fce76 100644 --- a/src/remoteException/EmptyDirectory.java +++ b/src/remoteException/EmptyDirectory.java @@ -1,7 +1,7 @@ package remoteException; -import exception.remoteException; +import exception.RemoteException; -public class EmptyDirectory extends 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 5c802a1..cbc580f 100644 --- a/src/remoteException/EmptyFile.java +++ b/src/remoteException/EmptyFile.java @@ -1,7 +1,7 @@ package remoteException; -import exception.remoteException; +import exception.RemoteException; -public class EmptyFile extends 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 1b9298c..802ee05 100644 --- a/src/remoteException/InternalRemoteError.java +++ b/src/remoteException/InternalRemoteError.java @@ -1,7 +1,7 @@ package remoteException; -import exception.remoteException; +import exception.RemoteException; -public class InternalRemoteError extends 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 c58b61e..f8002bc 100644 --- a/src/remoteException/NotFound.java +++ b/src/remoteException/NotFound.java @@ -1,7 +1,7 @@ package remoteException; -import exception.remoteException; +import exception.RemoteException; -public class NotFound extends 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 c396a98..c0c6161 100644 --- a/src/remoteException/ProtocolRemoteError.java +++ b/src/remoteException/ProtocolRemoteError.java @@ -1,7 +1,7 @@ package remoteException; -import exception.remoteException; +import exception.RemoteException; -public class ProtocolRemoteError extends 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 a39001f..775d9cb 100644 --- a/src/remoteException/VersionRemoteError.java +++ b/src/remoteException/VersionRemoteError.java @@ -1,7 +1,7 @@ package remoteException; -import exception.remoteException; +import exception.RemoteException; -public class VersionRemoteError extends exception.remoteException { +public class VersionRemoteError extends exception.RemoteException { private static final long serialVersionUID = 12L; }