Class DAMException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class DAMException
    extends java.lang.Exception
    Defines the exception for the {addon.label}.
    Since:
    1.6.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DAMException​(com.onwbp.base.text.UserMessage message)
      Instantiates a new DAMException.
      DAMException​(java.lang.Exception ex)
      Instantiates a new DAMException.
      DAMException​(java.lang.String message)
      Instantiates a new DAMException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      java.lang.String getMessage​(java.util.Locale locale)
      Returns the message string by locale.
      com.onwbp.base.text.UserMessage getUserMessage()
      Returns the user message.
      • 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

      • DAMException

        public DAMException​(java.lang.String message)
        Instantiates a new DAMException.
        Parameters:
        message - the message
      • DAMException

        public DAMException​(com.onwbp.base.text.UserMessage message)
        Instantiates a new DAMException.
        Parameters:
        message - the message
      • DAMException

        public DAMException​(java.lang.Exception ex)
        Instantiates a new DAMException.
        Parameters:
        ex - the exception
    • Method Detail

      • getUserMessage

        public com.onwbp.base.text.UserMessage getUserMessage()
        Returns the user message.
      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable
      • getMessage

        public java.lang.String getMessage​(java.util.Locale locale)
        Returns the message string by locale.
        Parameters:
        locale - the locale
        Returns:
        the message