Class TranslationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.adobe.granite.translation.api.TranslationException
-
- All Implemented Interfaces:
Serializable
public class TranslationException extends Exception
The Class TranslationException.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TranslationException.ErrorCode
The Enum ErrorCode.
-
Constructor Summary
Constructors Constructor Description TranslationException(String message, TranslationException.ErrorCode errorCode)
Instantiates a new translation exception.TranslationException(String message, Throwable throwable, TranslationException.ErrorCode errorCode)
Instantiates a new translation exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslationException.ErrorCode
getErrorCode()
Gets the error code.String
getMessage()
String
toString()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
TranslationException
public TranslationException(String message, TranslationException.ErrorCode errorCode)
Instantiates a new translation exception.- Parameters:
message
- the messageerrorCode
- the error code
-
TranslationException
public TranslationException(String message, Throwable throwable, TranslationException.ErrorCode errorCode)
Instantiates a new translation exception.- Parameters:
message
- the messagethrowable
- the throwableerrorCode
- the error code
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
getErrorCode
public TranslationException.ErrorCode getErrorCode()
Gets the error code.- Returns:
- the error code
-
-