Class ComponentException

All Implemented Interfaces:
Serializable

public class ComponentException extends RuntimeException
Unchecked exception which may be thrown by Service Component Runtime.
See Also:
  • Constructor Details

    • ComponentException

      public ComponentException(String message, Throwable cause)
      Construct a new ComponentException with the specified message and cause.
      Parameters:
      message - The message for the exception.
      cause - The cause of the exception. May be null.
    • ComponentException

      public ComponentException(String message)
      Construct a new ComponentException with the specified message.
      Parameters:
      message - The message for the exception.
    • ComponentException

      public ComponentException(Throwable cause)
      Construct a new ComponentException with the specified cause.
      Parameters:
      cause - The cause of the exception. May be null.
  • Method Details

    • getCause

      public Throwable getCause()
      Returns the cause of this exception or null if no cause was set.
      Overrides:
      getCause in class Throwable
      Returns:
      The cause of this exception or null if no cause was set.
    • initCause

      public Throwable initCause(Throwable cause)
      Initializes the cause of this exception to the specified value.
      Overrides:
      initCause in class Throwable
      Parameters:
      cause - The cause of this exception.
      Returns:
      This exception.
      Throws:
      IllegalArgumentException - If the specified cause is this exception.
      IllegalStateException - If the cause of this exception has already been set.