Class MotorTimeoutException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.chatmotorapi.api.util.exception.MotorTimeoutException
All Implemented Interfaces:
Serializable

public class MotorTimeoutException
extends RuntimeException
MotorTimeoutException is a runtime exception that represents a timeout condition. This exception is typically used to wrap a checked TimeoutException in scenarios where explicit catching or throwing of checked exceptions is not desirable.

This exception is useful in contexts where operations are subject to a time constraint, such as external process execution or network communication. It provides a way to indicate a timeout failure without the overhead of checked exceptions.

Usage of this exception should be consistent with the general expectations of runtime exceptions, meaning it's unchecked and should be used for exceptional conditions that are not part of a normal operation flow. It's intended to signal a significant problem that a reasonable application might want to catch, but it's not compelled to do so.

See Also:
Serialized Form
  • Constructor Details

    • MotorTimeoutException

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

      public MotorTimeoutException​(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 exception's detail message.

      Parameters:
      message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
    • MotorTimeoutException

      public MotorTimeoutException​(Throwable cause)
      Constructs a new runtime exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.
      Parameters:
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)