Class AssetException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    AssetIOException

    public class AssetException
    extends java.lang.RuntimeException
    Exception 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 members
      AssetException​(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 members
      AssetException​(java.lang.Throwable rootCause)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object[] getArgs()  
      java.lang.String getMessage()
      This method overrides the default getMessage() method of Throwable class.
      java.lang.String getMessageFormat()
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 string
        params - 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 string
        rootCause - rootCause of Exception
        params - 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:
        getMessage in class java.lang.Throwable
        Returns:
        string