Class MotorExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.chatmotorapi.api.util.exception.MotorExecutionException
- All Implemented Interfaces:
Serializable
public class MotorExecutionException extends RuntimeException
Represents exceptions that occur during the unchecked execution of
operations.
Instances of this class are thrown to indicate that a method has ended unexpectedly and possibly left the application in an unknown state. The exception provides constructors to specify a detail message, a cause, or both. This aids in debugging by providing a clear path to the original error.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MotorExecutionException(String message)
Constructs a new runtime exception with the specified detail message.MotorExecutionException(String message, Throwable cause)
Constructs a new runtime exception with the specified detail message and cause.MotorExecutionException(Throwable cause)
Constructs a new runtime exception with the specified cause and a detail message derived from the cause's toString method. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MotorExecutionException
Constructs a new runtime exception with the specified detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.- Parameters:
message
- the detail message which is saved for later retrieval
-
MotorExecutionException
Constructs a new runtime exception with the specified detail message and cause. Note that the detail message associated withcause
is not automatically incorporated in this runtime exception's detail message.- Parameters:
message
- the detail message, saved for later retrieval by theThrowable.getMessage()
methodcause
- the cause of the exception, saved for later retrieval by theThrowable.getCause()
method. A null value indicates that the cause is nonexistent or unknown.
-
MotorExecutionException
Constructs a new runtime exception with the specified cause and a detail message derived from the cause's toString method. This constructor is useful for exceptions that are little more than wrappers for other throwables.- Parameters:
cause
- the cause of the exception, saved for later retrieval by theThrowable.getCause()
method. A null value indicates that the cause is nonexistent or unknown.
-