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:
Serializable
- Direct Known Subclasses:
AssetIOException
public class AssetException extends RuntimeException
Exception facade for all Asset related exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssetException(String message)AssetException(String message, Object... params)This constructor initializes class membersAssetException(String message, Throwable rootCause)AssetException(String message, Throwable rootCause, Object... params)This constructor initializes class membersAssetException(Throwable rootCause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]getArgs()StringgetMessage()This method overrides the default getMessage() method of Throwable class.StringgetMessageFormat()This method returns the message string which can be localized using i18n.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AssetException
public AssetException(String message)
-
AssetException
public AssetException(String message, Object... params)
This constructor initializes class members- Parameters:
message- Message stringparams- List of parameters to be incorporated in message string
-
AssetException
public AssetException(String message, Throwable rootCause, 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(Throwable rootCause)
-
-
Method Detail
-
getMessageFormat
public String getMessageFormat()
This method returns the message string which can be localized using i18n.- Returns:
- string
-
getArgs
public Object[] getArgs()
-
getMessage
public 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 classThrowable- Returns:
- string
-
-