public abstract class BaseLocalizedException extends Exception
For Deutch the file should be named: ExceptionsBundle_de.properties
For Portugues the file should be named: ExceptionsBundle_pt.properties
ExceptionKey.BUNDLE_NAME
.
Each key on the message file should be parameterized in the enumeration ExceptionKey
, Constructor and Description |
---|
BaseLocalizedException() |
BaseLocalizedException(ExceptionKey key)
Create's a new exception with the message that matches the key in the bundle exception file.
|
BaseLocalizedException(ExceptionKey key,
Object[] parameters)
Create's a new exception with the message that matches the key in the bundle exception file.
|
BaseLocalizedException(ExceptionKey key,
Object[] parameters,
Throwable cause)
Create's a new exception with the message that matches the key in the bundle exception file.
|
BaseLocalizedException(ExceptionKey key,
Throwable cause)
Create's a new exception with the message that matches the key in the bundle exception file.
|
BaseLocalizedException(Throwable cause)
Create a new base exception that encapsulates a root exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BaseLocalizedException()
Exception.Exception()
public BaseLocalizedException(ExceptionKey key)
key
- The key of the message on the properties fileException.Exception(String)
public BaseLocalizedException(ExceptionKey key, Object[] parameters)
key
- The key of the message on the properties fileparameters
- The parameters of the messageException.Exception(String)
public BaseLocalizedException(ExceptionKey key, Object[] parameters, Throwable cause)
key
- The key of the message on the properties fileparameters
- The parameters of the messagecause
- The root cause of the exceptionException.Exception(String, Throwable)
public BaseLocalizedException(ExceptionKey key, Throwable cause)
key
- cause
- Exception.Exception(String, Throwable)
public BaseLocalizedException(Throwable cause)
cause
- The root cause of the exceptionException.Exception(Throwable)
Copyright © 2014. All Rights Reserved.