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

public abstract class OperationException extends Exception
Signals there was an error while executing or attempting to start execution of an operation.
See Also:
  • Constructor Details

    • OperationException

      public OperationException(String operationName, String errorReport)
      Creates an exception reporting a specific error and an identifier for the failed operation
      Parameters:
      operationName - the name of the operation in question
      errorReport - a short description of the error