Class OperationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
it.polimi.ingsw.Exceptions.Operation.OperationException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FailedOperationException
,ForbiddenOperationException
Signals there was an error while executing or attempting to start execution of an operation.
- See Also:
-
Constructor Summary
ConstructorDescriptionOperationException
(String operationName, String errorReport) 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
-
OperationException
Creates an exception reporting a specific error and an identifier for the failed operation- Parameters:
operationName
- the name of the operation in questionerrorReport
- a short description of the error
-