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:
- Serializable
public class InjectionException
- extends javax.enterprise.inject.InjectionException
Provides message localization service for the
InjectionException
.
- Author:
- David Allen
- See Also:
- Serialized Form
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 messagethrowable
- The cause of the exception or wrapped throwable
InjectionException
public InjectionException(E key,
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 String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in class Throwable
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
Copyright © 2013 Seam Framework. All Rights Reserved.