Class TranslationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.adobe.granite.translation.api.TranslationException
- All Implemented Interfaces:
Serializable
The Class TranslationException.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTranslationException(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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
TranslationException
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 Details
-
toString
-
getMessage
- Overrides:
getMessagein classThrowable
-
getErrorCode
Gets the error code.- Returns:
- the error code
-