Class DefinitionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.enterprise.inject.spi.DefinitionException
org.jboss.weld.exceptions.DefinitionException
All Implemented Interfaces:
Serializable

public class DefinitionException extends jakarta.enterprise.inject.spi.DefinitionException
Thrown if the definition of a bean is incorrect
Author:
Pete Muir, Jozef Hartinger
See Also:
  • Constructor Details

    • DefinitionException

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

      public DefinitionException(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
    • DefinitionException

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

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