Class TranslatableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.sgrewritten.stargate.exception.TranslatableException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BungeeNameException
,InvalidNameException
,LocalisedMessageException
,NameConflictException
,NameLengthException
,UnimplementedFlagException
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLocalisedMessage
(LanguageManager manager) protected abstract TranslatableMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TranslatableException
- Parameters:
message
-The message displayed in stack traces
-
-
Method Details
-
getTranslatableMessage
- Returns:
A translatable message that can be used to determine the localized message of this exception
-
getLocalisedMessage
- Parameters:
manager
-A language manager able to provide localized messages
- Returns:
The localized message of this exception
-