public class TranslationException extends Exception
| Modifier and Type | Class and Description |
|---|---|
static class |
TranslationException.ErrorCode
The Enum ErrorCode.
|
| Constructor and Description |
|---|
TranslationException(String message,
Throwable throwable,
TranslationException.ErrorCode errorCode)
Instantiates a new translation exception.
|
TranslationException(String message,
TranslationException.ErrorCode errorCode)
Instantiates a new translation exception.
|
| Modifier and Type | Method and Description |
|---|---|
TranslationException.ErrorCode |
getErrorCode()
Gets the error code.
|
String |
getMessage() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic TranslationException(String message, TranslationException.ErrorCode errorCode)
message - the messageerrorCode - the error codepublic TranslationException(String message, Throwable throwable, TranslationException.ErrorCode errorCode)
message - the messagethrowable - the throwableerrorCode - the error codepublic String getMessage()
getMessage in class Throwablepublic TranslationException.ErrorCode getErrorCode()
Copyright © 2010 - 2020 Adobe. All Rights Reserved