Class ScriptAlreadyExists
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.kobe.xbot.Utilities.Exceptions.ScriptAlreadyExists
- All Implemented Interfaces:
Serializable
Exception thrown when a script already exists in the system.
This exception is used to indicate that an attempt to create or register a script
has failed because a script with the same identifier or name already exists.
Author: Kobe
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new exception withnull
as its detail message.ScriptAlreadyExists
(String message) Constructs a new exception with the specified detail message.ScriptAlreadyExists
(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.ScriptAlreadyExists
(Throwable cause) Constructs a new exception with the specified cause and a detail message of(cause == null ? null : cause.toString())
(which typically contains the class and detail message ofcause
). -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ScriptAlreadyExists
public ScriptAlreadyExists()Constructs a new exception withnull
as its detail message. The cause is not initialized and may be subsequently initialized by a call toThrowable.initCause(java.lang.Throwable)
. -
ScriptAlreadyExists
Constructs a new exception with the specified detail message. The cause is not initialized and may be subsequently initialized by a call toThrowable.initCause(java.lang.Throwable)
.- Parameters:
message
- The detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
ScriptAlreadyExists
Constructs a new exception with the specified detail message and cause.- Parameters:
message
- The detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method). A null value is permitted, and indicates that the cause is nonexistent or unknown.
-
ScriptAlreadyExists
Constructs a new exception with the specified cause and a detail message of(cause == null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).- Parameters:
cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method). A null value is permitted, and indicates that the cause is nonexistent or unknown.
-