Package com.adobe.granite.asset.api
Class AssetException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.adobe.granite.asset.api.AssetException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AssetIOException
public class AssetException extends java.lang.RuntimeExceptionException facade for all Asset related exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssetException(java.lang.String message)AssetException(java.lang.String message, java.lang.Object... params)This constructor initializes class membersAssetException(java.lang.String message, java.lang.Throwable rootCause)AssetException(java.lang.String message, java.lang.Throwable rootCause, java.lang.Object... params)This constructor initializes class membersAssetException(java.lang.Throwable rootCause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]getArgs()java.lang.StringgetMessage()This method overrides the default getMessage() method of Throwable class.java.lang.StringgetMessageFormat()This method returns the message string which can be localized using i18n.
-
-
-
Constructor Detail
-
AssetException
public AssetException(java.lang.String message)
-
AssetException
public AssetException(java.lang.String message, java.lang.Object... params)This constructor initializes class members- Parameters:
message- Message stringparams- List of parameters to be incorporated in message string
-
AssetException
public AssetException(java.lang.String message, java.lang.Throwable rootCause, java.lang.Object... params)This constructor initializes class members- Parameters:
message- Message stringrootCause- rootCause of Exceptionparams- List of parameters to be incorporated in message string
-
AssetException
public AssetException(java.lang.Throwable rootCause)
-
AssetException
public AssetException(java.lang.String message, java.lang.Throwable rootCause)
-
-
Method Detail
-
getMessageFormat
public java.lang.String getMessageFormat()
This method returns the message string which can be localized using i18n.- Returns:
- string
-
getArgs
public java.lang.Object[] getArgs()
-
getMessage
public java.lang.String getMessage()
This method overrides the default getMessage() method of Throwable class. It returns formatted message string after incorporating the args list or detailMessage- Overrides:
getMessagein classjava.lang.Throwable- Returns:
- string
-
-