Class WeldException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
NullInstanceException

public class WeldException extends RuntimeException
A general run-time exception used by the JSR-299 reference implementation Weld.
Author:
David Allen
See Also:
  • Constructor Details

    • WeldException

      public WeldException(Throwable throwable)
      Creates a new exception with the given cause.
      Parameters:
      throwable - The cause of the exception
    • WeldException

      public WeldException(List<Throwable> errors)
      Creates a new exception based on a list of throwables. The throwables are not used as the cause, but the message from each throwable is included as the message for this exception.
      Parameters:
      errors - A list of throwables to use in the message
    • WeldException

      public WeldException(String message)
      Creates a new exception with the given localized message.
      Parameters:
      message -
    • WeldException

      public WeldException(String message, Throwable throwable)
      Creates a new exception with the given localized message and the cause for this exception.
      Parameters:
      message -
      throwable -
  • Method Details