Package com.sk89q.worldedit
Class WorldEditException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sk89q.worldedit.WorldEditException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorizationException,DisallowedItemException,EmptyClipboardException,FilenameException,IncompleteRegionException,InputParseException,InsufficientArgumentsException,InvalidComponentException,InvalidToolBindException,MaxChangedBlocksException,MaxRadiusException,MissingWorldException,NotABlockException,OutsideWorldBoundsException,RadiusLimitException,RegionOperationException,UnknownDirectionException,UnknownItemException,WorldUnloadedException
Parent for all WorldEdit exceptions.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate a new exception.protectedWorldEditException(com.sk89q.worldedit.util.formatting.text.Component message) Create a new exception with a message.protectedWorldEditException(com.sk89q.worldedit.util.formatting.text.Component message, Throwable cause) Create a new exception with a message and a cause.protectedWorldEditException(String message) Deprecated.Use component versionprotectedWorldEditException(String message, Throwable cause) Deprecated.Use component versionprotectedWorldEditException(Throwable cause) Create a new exception with a cause. -
Method Summary
Modifier and TypeMethodDescriptioncom.sk89q.worldedit.util.formatting.text.ComponentGet the message of this exception as a rich text component.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WorldEditException
protected WorldEditException()Create a new exception. -
WorldEditException
Deprecated.Use component versionCreate a new exception with a message.- Parameters:
message- the message
-
WorldEditException
protected WorldEditException(com.sk89q.worldedit.util.formatting.text.Component message) Create a new exception with a message.- Parameters:
message- the message
-
WorldEditException
Deprecated.Use component versionCreate a new exception with a message and a cause.- Parameters:
message- the messagecause- the cause
-
WorldEditException
protected WorldEditException(com.sk89q.worldedit.util.formatting.text.Component message, Throwable cause) Create a new exception with a message and a cause.- Parameters:
message- the messagecause- the cause
-
WorldEditException
Create a new exception with a cause.- Parameters:
cause- the cause
-
-
Method Details
-
getRichMessage
public com.sk89q.worldedit.util.formatting.text.Component getRichMessage()Get the message of this exception as a rich text component.- Returns:
- The rich message
-