Class TranslationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.adobe.granite.translation.api.TranslationException
-
- All Implemented Interfaces:
java.io.Serializable
public class TranslationException extends java.lang.ExceptionThe Class TranslationException.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTranslationException.ErrorCodeThe Enum ErrorCode.
-
Constructor Summary
Constructors Constructor Description TranslationException(java.lang.String message, TranslationException.ErrorCode errorCode)Instantiates a new translation exception.TranslationException(java.lang.String message, java.lang.Throwable throwable, TranslationException.ErrorCode errorCode)Instantiates a new translation exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslationException.ErrorCodegetErrorCode()Gets the error code.java.lang.StringgetMessage()java.lang.StringtoString()
-
-
-
Constructor Detail
-
TranslationException
public TranslationException(java.lang.String message, TranslationException.ErrorCode errorCode)Instantiates a new translation exception.- Parameters:
message- the messageerrorCode- the error code
-
TranslationException
public TranslationException(java.lang.String message, java.lang.Throwable throwable, TranslationException.ErrorCode errorCode)Instantiates a new translation exception.- Parameters:
message- the messagethrowable- the throwableerrorCode- the error code
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
getErrorCode
public TranslationException.ErrorCode getErrorCode()
Gets the error code.- Returns:
- the error code
-
-