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