Package org.xwiki.localization
Class LocalizationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.xwiki.localization.LocalizationException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TranslationBundleDoesNotExistsException
,TranslationBundleFactoryDoesNotExistsException
public class LocalizationException extends Exception
All Localization module API must raise an exception of this type.- Since:
- 4.3M2
- Version:
- $Id: 7befaaedf3970794919b04595dd059fc0f62a171 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LocalizationException(String message)
Constructs a new exception with the specified detail message.LocalizationException(String message, Throwable cause)
Constructs a new exception with the specified detail message and cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
LocalizationException
public LocalizationException(String message)
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(Throwable)
.- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method)
-
LocalizationException
public LocalizationException(String message, Throwable cause)
Constructs a new exception with the specified detail message and cause.- Parameters:
message
- the detail message (which is saved for later retrieval by theThrowable.getMessage()
method)cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method). A null value is permitted, and indicates that the cause is nonexistent or unknown
-
-