Class InjectionException

  • All Implemented Interfaces:
    Serializable

    public class InjectionException
    extends jakarta.enterprise.inject.InjectionException
    Provides message localization service for the .
    Author:
    David Allen
    See Also:
    Serialized Form
    • Constructor Detail

      • InjectionException

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

        public InjectionException​(String message,
                                  Throwable throwable)
        Creates a new exception with an arbitrary message and the cause of the exception. It is not recommended to use this constructor since the message cannot be localized.
        Parameters:
        message - The error message
        throwable - The cause of the exception or wrapped throwable