org.jboss.weld.exceptions
Class InjectionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.enterprise.inject.InjectionException
org.jboss.weld.exceptions.InjectionException
- All Implemented Interfaces:
- java.io.Serializable
public class InjectionException
- extends javax.enterprise.inject.InjectionException
Provides message localization service for the
InjectionException.
- Author:
- David Allen
- See Also:
- Serialized Form
|
Constructor Summary |
InjectionException(E key,
java.lang.Object... args)
Creates a new exception with the given localized message key and optional
arguments for the message. |
InjectionException(java.lang.String message,
java.lang.Throwable throwable)
Creates a new exception with an arbitrary message and the cause of the
exception. |
InjectionException(java.lang.Throwable throwable)
Creates a new exception with the given cause. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InjectionException
public InjectionException(java.lang.Throwable throwable)
- Creates a new exception with the given cause.
- Parameters:
throwable - The cause of the exception
InjectionException
public InjectionException(java.lang.String message,
java.lang.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 messagethrowable - The cause of the exception or wrapped throwable
InjectionException
public InjectionException(E key,
java.lang.Object... args)
- Creates a new exception with the given localized message key and optional
arguments for the message.
- Type Parameters:
E - The enumeration type for the message keys- Parameters:
key - The localized message to useargs - Optional arguments to insert into the message
getLocalizedMessage
public java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessage in class java.lang.Throwable
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage in class java.lang.Throwable
Copyright © 2008-2010 Seam Framework. All Rights Reserved.