Class PermissionsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- ca.stellardrift.permissionsex.exception.PermissionsException
-
- All Implemented Interfaces:
Serializable,net.kyori.adventure.util.ComponentMessageThrowable
- Direct Known Subclasses:
PEBKACException,PermissionsLoadingException
public class PermissionsException extends Exception implements net.kyori.adventure.util.ComponentMessageThrowable
An exception where PermissionsEx is involved.- Since:
- 2.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PermissionsException(@Nullable net.kyori.adventure.text.Component message)PermissionsException(@Nullable net.kyori.adventure.text.Component message, @Nullable Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description net.kyori.adventure.text.ComponentcomponentMessage()StringgetLocalizedMessage()StringgetLocalizedMessage(Locale locale)StringgetMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
PermissionsException
public PermissionsException(@Nullable net.kyori.adventure.text.Component message)
-
PermissionsException
public PermissionsException(@Nullable net.kyori.adventure.text.Component message, @Nullable Throwable cause)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessagein classThrowable
-
componentMessage
public net.kyori.adventure.text.Component componentMessage()
- Specified by:
componentMessagein interfacenet.kyori.adventure.util.ComponentMessageThrowable
-
getLocalizedMessage
public String getLocalizedMessage(Locale locale)
-
-