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 Details

    • MotorExecutionException

      public MotorExecutionException​(String message)
      Constructs a new runtime exception with the specified detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
      Parameters:
      message - the detail message which is saved for later retrieval
    • MotorExecutionException

      public MotorExecutionException​(String message, Throwable cause)
      Constructs a new runtime exception with the specified detail message and cause. Note that the detail message associated with cause is not automatically incorporated in this runtime exception's detail message.
      Parameters:
      message - the detail message, saved for later retrieval by the Throwable.getMessage() method
      cause - the cause of the exception, saved for later retrieval by the Throwable.getCause() method. A null value indicates that the cause is nonexistent or unknown.
    • MotorExecutionException

      public MotorExecutionException​(Throwable cause)
      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 the Throwable.getCause() method. A null value indicates that the cause is nonexistent or unknown.