Class NoAccessToStructureCommandException

All Implemented Interfaces:
Serializable

public class NoAccessToStructureCommandException extends CommandExecutionException
Represents an exception that is thrown when a CommandSender tries to execute a command for a structure where they are not allowed to do so.

For example, a structure owner at the USER permission level trying to execute a command that requires the ADMIN permission level.

See Also:
  • Constructor Details

    • NoAccessToStructureCommandException

      public NoAccessToStructureCommandException(boolean userInformed)
    • NoAccessToStructureCommandException

      public NoAccessToStructureCommandException(boolean userInformed, @Nullable String message)
    • NoAccessToStructureCommandException

      public NoAccessToStructureCommandException(boolean userInformed, @Nullable Throwable cause)
    • NoAccessToStructureCommandException

      public NoAccessToStructureCommandException(boolean userInformed, @Nullable String message, @Nullable Throwable cause)