Class InvalidArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.eriantys.model.exceptions.InvalidArgumentException
- All Implemented Interfaces:
Serializable
This exception is thrown whenever an illegal parameter referred to a game object
has been passed to a class or specific method.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a new exception withnull
as its detail message.InvalidArgumentException
(String message) Constructs a new exception with the specified detail message.InvalidArgumentException
(String message, Throwable cause) Constructs a new exception with the specified detail message and 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
-
InvalidArgumentException
public InvalidArgumentException()Constructs a new exception withnull
as its detail message. -
InvalidArgumentException
Constructs a new exception with the specified detail message.- Parameters:
message
- the detail message, which is saved for later retrieval by theThrowable.getMessage()
method
-
InvalidArgumentException
Constructs a new exception with the specified detail message and cause.- 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
-