Class CommandExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
nl.pim16aap2.animatedarchitecture.core.exceptions.CommandExecutionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CannotAddPropertyException, CannotEditPropertyException, CannotRemovePropertyException, InvalidCommandInputException, NoAccessToStructureCommandException, NonPlayerExecutingPlayerCommandException, NoStructuresForCommandException, PlayerExecutingNonPlayerCommandException, PropertyIsHiddenException, RequiredPropertiesMissingForCommandException
The generic exception that is thrown when a command fails to execute.
Generally, this exception should not be thrown directly, but rather one of its subclasses.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCommandExecutionException(boolean userInformed) CommandExecutionException(boolean userInformed, @Nullable String message) CommandExecutionException(boolean userInformed, @Nullable String message, @Nullable Throwable cause) CommandExecutionException(boolean userInformed, @Nullable Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturns whether the user has been informed about this exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CommandExecutionException
public CommandExecutionException(boolean userInformed) -
CommandExecutionException
-
CommandExecutionException
-
CommandExecutionException
-
-
Method Details
-
isUserInformed
public final boolean isUserInformed()Returns whether the user has been informed about this exception.When this is
true, a message has been sent to the user when this exception was thrown. When this isfalse, no message has been sent to the user and a generic error message should be sent.- Returns:
trueif the user has been informed,falseotherwise.
-