Class MultiverseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.mvplugins.multiverse.core.exceptions.MultiverseException
- All Implemented Interfaces:
Serializable,LocalizableMessage
- Direct Known Subclasses:
ConfigNodeNotFoundException,MultiverseWorldException,PositionParseException
A base exception for Multiverse.
getLocalizableMessage() provides access to a Message which can be used to provide a localized message.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMultiverseException(@Nullable String message) Creates a new exception with the given message.MultiverseException(@Nullable String message, @Nullable Throwable cause) Creates a new exception with the given message and cause.MultiverseException(@Nullable Message message) Creates a new exception with the given message.MultiverseException(@Nullable Message message, @Nullable Throwable cause) Creates a new exception with the given message and 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
-
MultiverseException
Creates a new exception with the given message.
If the message is not null, this exception will also contain aMessagewhich can be accessed viagetLocalizableMessage(). This message will just be the given message wrapped in aMessage.- Parameters:
message- The message for the exception
-
MultiverseException
Creates a new exception with the given message.
If the message is not null, this exception will also contain a String message which can be accessed viaThrowable.getMessage(). This message will just be the given message formatted without locale support.- Parameters:
message- The message for the exception
-
MultiverseException
Creates a new exception with the given message and cause.
If the message is not null, this exception will also contain aMessagewhich can be accessed viagetLocalizableMessage(). This message will just be the given message wrapped in aMessage.- Parameters:
message- The message for the exceptioncause- The cause of the exception
-
MultiverseException
public MultiverseException(@Nullable @Nullable Message message, @Nullable @Nullable Throwable cause) Creates a new exception with the given message and cause.
If the message is not null, this exception will also contain a String message which can be accessed viaThrowable.getMessage(). This message will just be the given message formatted without locale support.- Parameters:
message- The message for the exceptioncause- The cause of the exception
-
-
Method Details
-
getLocalizableMessage
Gets theMessagefor this exception.- Specified by:
getLocalizableMessagein interfaceLocalizableMessage- Returns:
- The message, or null if none was provided
-