Package com.orchestranetworks.addon.dpra
Class DPRAException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.orchestranetworks.addon.dpra.DPRAException
- All Implemented Interfaces:
Serializable
Represents an error with a user-friendly message when performing operations in the Insight (new) add-on.
- Since:
- 4.2.0
- See Also:
-
Constructor Summary
ConstructorDescriptionDPRAException
(com.onwbp.base.text.UserMessage message) Constructs a new instance without a cause.DPRAException
(com.onwbp.base.text.UserMessage message, Throwable cause) Constructs a new instance with a cause.DPRAException
(String message) Constructs a new instance without a cause.DPRAException
(String message, Throwable cause) Constructs a new instance with a cause. -
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(Locale locale) Returns the error message for a locale.com.onwbp.base.text.UserMessage
Returns the localized error message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DPRAException
Constructs a new instance without a cause.- Parameters:
message
- The error message.
-
DPRAException
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
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
- Overrides:
getMessage
in classThrowable
-
getMessage
Returns the error message for a locale.
-