Package org.jboss.weld.exceptions
Class InjectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jakarta.enterprise.inject.InjectionException
org.jboss.weld.exceptions.InjectionException
- All Implemented Interfaces:
Serializable
public class InjectionException
extends jakarta.enterprise.inject.InjectionException
Provides message localization service for the
.
- Author:
- David Allen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInjectionException(String message, Throwable throwable) Creates a new exception with an arbitrary message and the cause of the exception.InjectionException(Throwable throwable) Creates a new exception with the given cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InjectionException
Creates a new exception with the given cause.- Parameters:
throwable- The cause of the exception
-
InjectionException
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 messagethrowable- The cause of the exception or wrapped throwable
-
-
Method Details
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classThrowable
-
getMessage
- Overrides:
getMessagein classThrowable
-