Merge branch 'exceptionsheritage' of flavien/Projet_JAVA_P2P_STRI2A into etape4
commit
0ac0eab231
@ -1,4 +1,5 @@
|
||||
package exception;
|
||||
public class InternalError extends Exception {
|
||||
|
||||
public class LocalException extends Exception {
|
||||
private static final long serialVersionUID = 12L;
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
package exception;
|
||||
public class ProtocolError extends Exception {
|
||||
|
||||
public class RemoteException extends Exception {
|
||||
private static final long serialVersionUID = 12L;
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
package exception;
|
||||
public class SocketClosed extends Exception {
|
||||
private static final long serialVersionUID = 12L;
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
package exception;
|
||||
public class TransmissionError extends Exception {
|
||||
private static final long serialVersionUID = 12L;
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
package exception;
|
||||
public class VersionError extends Exception {
|
||||
private static final long serialVersionUID = 12L;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package localException;
|
||||
|
||||
import exception.LocalException;
|
||||
|
||||
public class InternalError extends exception.LocalException {
|
||||
private static final long serialVersionUID = 12L;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package localException;
|
||||
|
||||
import exception.LocalException;
|
||||
|
||||
public class ProtocolError extends exception.LocalException {
|
||||
private static final long serialVersionUID = 12L;
|
||||
}
|
@ -1,5 +1,9 @@
|
||||
package exception;
|
||||
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;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package localException;
|
||||
|
||||
import exception.LocalException;
|
||||
|
||||
public class SocketClosed extends exception.LocalException {
|
||||
private static final long serialVersionUID = 12L;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package localException;
|
||||
|
||||
import exception.LocalException;
|
||||
|
||||
public class TransmissionError extends exception.LocalException {
|
||||
private static final long serialVersionUID = 12L;
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
package localException;
|
||||
|
||||
import exception.LocalException;
|
||||
|
||||
public class VersionError extends exception.LocalException {
|
||||
private static final long serialVersionUID = 12L;
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue