Package com.sk89q.worldedit
Class WorldEditException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sk89q.worldedit.WorldEditException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AuthorizationException
,DisallowedItemException
,EmptyClipboardException
,FilenameException
,IncompleteRegionException
,InputParseException
,InsufficientArgumentsException
,InvalidComponentException
,InvalidToolBindException
,MaxChangedBlocksException
,MaxRadiusException
,MissingWorldException
,NotABlockException
,RegionOperationException
,UnknownDirectionException
,UnknownItemException
,WorldUnloadedException
Parent for all WorldEdit exceptions.
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
Create a new exception.protected
WorldEditException
(com.sk89q.worldedit.util.formatting.text.Component message) Create a new exception with a message.protected
WorldEditException
(com.sk89q.worldedit.util.formatting.text.Component message, Throwable cause) Create a new exception with a message and a cause.protected
WorldEditException
(String message) Deprecated.Use component versionprotected
WorldEditException
(String message, Throwable cause) Deprecated.Use component versionprotected
WorldEditException
(Throwable cause) Create a new exception with a cause. -
Method Summary
Modifier and TypeMethodDescriptioncom.sk89q.worldedit.util.formatting.text.Component
Get 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
-