Package org.jboss.weld.exceptions
Class IllegalProductException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- javax.enterprise.inject.InjectionException
-
- javax.enterprise.inject.IllegalProductException
-
- org.jboss.weld.exceptions.IllegalProductException
-
- All Implemented Interfaces:
Serializable
public class IllegalProductException extends IllegalProductException
AnIllegalProductExceptionwith support for localized messages in Weld.- Author:
- David Allen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IllegalProductException(String message)Creates a new exception with the given localized message.IllegalProductException(String message, Throwable throwable)Creates a new exception with the given localized message and the cause for this exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLocalizedMessage()StringgetMessage()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
IllegalProductException
public IllegalProductException(String message)
Creates a new exception with the given localized message.- Parameters:
message-
-
-
Method Detail
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessagein classThrowable
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
-