Class NoConnectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.eriantys.server.exceptions.NoConnectionException
- All Implemented Interfaces:
Serializable
This exception is thrown by the
Server
class and by the classes of the controller package whenever no
connection can be retrieved for the desired client.- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a new exception withnull
as its detail message.NoConnectionException
(String message) Constructs a new exception with the specified detail message.NoConnectionException
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.NoConnectionException
(Throwable cause) Constructs a new exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoConnectionException
public NoConnectionException()Constructs a new exception withnull
as its detail message. -
NoConnectionException
Constructs a new exception with the specified detail message.- Parameters:
message
- the detail message, which is saved for later retrieval by theThrowable.getMessage()
method
-
NoConnectionException
Constructs a new exception with the specified detail message and cause. Note that the detail message associated withcause
is not automatically incorporated in this exception's detail message.- Parameters:
message
- the detail message, which is saved for later retrieval by theThrowable.getMessage()
methodcause
- the detail cause, which is saved for later retrieval by theThrowable.getCause()
method (anull
value is permitted, and indicates that the cause is nonexistent or unknown)
-
NoConnectionException
Constructs a new exception with the specified cause. Note that the detail message associated withcause
is not automatically incorporated in this exception's detail message.- Parameters:
cause
- the detail cause, which is saved for later retrieval by theThrowable.getCause()
method (anull
value is permitted, and indicates that the cause is nonexistent or unknown)
-