Package org.craftercms.commons.i10n
Class AbstractI10nException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.craftercms.commons.i10n.AbstractI10nException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CryptoException
,EmailException
public abstract class AbstractI10nException extends Exception
Root exception for anyException
that wants to be localized.- Author:
- avasquez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractI10nException()
AbstractI10nException(String key, Object... args)
AbstractI10nException(String key, Throwable cause, Object... args)
AbstractI10nException(Throwable cause)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
getMessage()
protected abstract ResourceBundle
getResourceBundle()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AbstractI10nException
public AbstractI10nException()
-
AbstractI10nException
public AbstractI10nException(Throwable cause)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getResourceBundle
protected abstract ResourceBundle getResourceBundle()
-
-