Class DPRAException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.orchestranetworks.addon.dpra.DPRAException
All Implemented Interfaces:
Serializable

public class DPRAException extends Exception
Represents an error with a user-friendly message when performing operations in the Insight (new) add-on.
Since:
4.2.0
See Also:
  • Constructor Details

    • DPRAException

      public DPRAException(String message)
      Constructs a new instance without a cause.
      Parameters:
      message - The error message.
    • DPRAException

      public DPRAException(String message, Throwable cause)
      Constructs a new instance with a cause.
      Parameters:
      message - The error message.
      cause - The wrapped error.
    • DPRAException

      public DPRAException(com.onwbp.base.text.UserMessage message)
      Constructs a new instance without a cause.
      Parameters:
      message - The localized error message.
    • DPRAException

      public DPRAException(com.onwbp.base.text.UserMessage message, Throwable cause)
      Constructs a new instance with a cause.
      Parameters:
      message - The localized error message.
      cause - The wrapped error.
  • Method Details

    • getUserMessage

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

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • getMessage

      public String getMessage(Locale locale)
      Returns the error message for a locale.