Class PermissionBackendException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ru.tehkode.permissions.exceptions.PermissionBackendException
- All Implemented Interfaces:
Serializable
Checked exception thrown when a permission backend operation fails.
Used for recoverable storage errors during reload, save, close, and similar backend lifecycle
operations. Initialization failures may be wrapped in RuntimeException by
PermissionBackend.getBackend(java.lang.String, ru.tehkode.permissions.PermissionManager, ru.tehkode.permissions.PEXBackendConfiguration).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an exception with no detail message.PermissionBackendException(String message) Creates an exception with the given detail message.PermissionBackendException(String message, Throwable cause) Creates an exception with the given detail message and cause.Creates an exception wrapping the given cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PermissionBackendException
public PermissionBackendException()Creates an exception with no detail message. -
PermissionBackendException
Creates an exception with the given detail message.- Parameters:
message- human-readable error description
-
PermissionBackendException
Creates an exception with the given detail message and cause.- Parameters:
message- human-readable error descriptioncause- underlying cause of the failure
-
PermissionBackendException
Creates an exception wrapping the given cause.- Parameters:
cause- underlying cause of the failure
-