org.jboss.weld.exceptions
Class CreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.enterprise.inject.InjectionException
javax.enterprise.inject.CreationException
org.jboss.weld.exceptions.CreationException
- All Implemented Interfaces:
- java.io.Serializable
public class CreationException
- extends javax.enterprise.inject.CreationException
A version of CreationException that supports
message localization.
- Author:
- David Allen
- See Also:
- Serialized Form
|
Constructor Summary |
CreationException(E key,
java.lang.Object... args)
Creates a new exception with the given localized message key and optional
arguments for the message. |
CreationException(E key,
java.lang.Throwable throwable,
java.lang.Object... args)
Creates a new exception with the given localized message key, the cause
for this exception and optional arguments for the message. |
| 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 |
CreationException
public CreationException(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
CreationException
public CreationException(E key,
java.lang.Throwable throwable,
java.lang.Object... args)
- Creates a new exception with the given localized message key, the cause
for this exception and optional arguments for the message.
- Type Parameters:
E - The enumeration type for the message keys- Parameters:
key - The localized message to usethrowable - The cause for this exceptionargs - 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.