Class ForbiddenOperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.Exceptions.Operation.OperationException
it.polimi.ingsw.Exceptions.Operation.ForbiddenOperationException
- All Implemented Interfaces:
Serializable
Signals there was an error while attempting to carry out an operation. This is different from any
InputValidationException
in the sense that the operation is thought to be "generally allowed" under most normal circumstances, but some
form of verification was required to prevent potential unrecoverable errors in the code.- See Also:
-
Constructor Summary
ConstructorDescriptionForbiddenOperationException
(String operationName, String additionalInfo) Creates an exception reporting a specific error and an identifier for the failed operation -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ForbiddenOperationException
Creates an exception reporting a specific error and an identifier for the failed operation- Parameters:
operationName
- the name of the operation in questionadditionalInfo
- a short description of the error
-