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.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(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.ErrorCode
getErrorCode()
Gets the error code.java.lang.String
getMessage()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Throwable
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
getErrorCode
public TranslationException.ErrorCode getErrorCode()
Gets the error code.- Returns:
- the error code
-
-