Package jadex.common

Class MultiException

All Implemented Interfaces:
Serializable

public class MultiException extends RuntimeException
An exception that can store multiple causes.
See Also:
  • Field Details

    • causes

      protected List<Throwable> causes
      The exceptions.
    • message

      protected String message
      The message.
  • Constructor Details

    • MultiException

      public MultiException()
      Create a new multi exception.
    • MultiException

      public MultiException(String message)
      Create a new multi exception.
    • MultiException

      public MultiException(List<Throwable> causes)
      Create a new multi exception.
    • MultiException

      public MultiException(String message, List<Throwable> causes)
      Create a new multi exception.
  • Method Details

    • addCause

      public MultiException addCause(Throwable cause)
      Add an exception.
      Parameters:
      cause - The cause.
    • getCauses

      public Throwable[] getCauses()
      Get the causes.
      Returns:
      The causes.
    • getMessage

      public String getMessage()
      Returns the detail message string of this throwable.
      Overrides:
      getMessage in class Throwable
      Returns:
      The detail message string of this Throwable instance (which may be null).
    • setText

      public void setText(String message)
      Set the message.
      Parameters:
      message - The message.