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

public class MultiverseException extends Exception implements LocalizableMessage
A base exception for Multiverse.
getLocalizableMessage() provides access to a Message which can be used to provide a localized message.
See Also:
  • Constructor Details

    • MultiverseException

      public MultiverseException(@Nullable @Nullable String message)
      Creates a new exception with the given message.
      If the message is not null, this exception will also contain a Message which can be accessed via getLocalizableMessage(). This message will just be the given message wrapped in a Message.
      Parameters:
      message - The message for the exception
    • MultiverseException

      public MultiverseException(@Nullable @Nullable Message message)
      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 via Throwable.getMessage(). This message will just be the given message formatted without locale support.
      Parameters:
      message - The message for the exception
    • MultiverseException

      public MultiverseException(@Nullable @Nullable String 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 Message which can be accessed via getLocalizableMessage(). This message will just be the given message wrapped in a Message.
      Parameters:
      message - The message for the exception
      cause - 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 via Throwable.getMessage(). This message will just be the given message formatted without locale support.
      Parameters:
      message - The message for the exception
      cause - The cause of the exception
  • Method Details