public class FailureItemException extends RuntimeException implements FailureItemProvider
FailureItem.| Constructor and Description |
|---|
FailureItemException(FailureItem item)
Returns an exception wrapping the failure item.
|
FailureItemException(FailureReason reason,
String messageTemplate,
Object... messageArgs)
Returns an exception from a reason and message.
|
FailureItemException(FailureReason reason,
Throwable cause,
String messageTemplate,
Object... messageArgs)
Returns an exception from a reason, cause and message.
|
| Modifier and Type | Method and Description |
|---|---|
FailureItem |
getFailureItem()
Gets the failure item.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic FailureItemException(FailureItem item)
item - the failure itempublic FailureItemException(FailureReason reason, String messageTemplate, Object... messageArgs)
The message is produced using a template that contains zero to many "{argName}" placeholders.
Each placeholder is replaced by the next available argument.
If there are too few arguments, then the message will be left with placeholders.
If there are too many arguments, then the excess arguments are appended to the
end of the message. No attempt is made to format the arguments.
See Messages.formatWithAttributes(String, Object...) for more details.
reason - the reasonmessageTemplate - a message explaining the failure, not empty, uses "{argName}" for inserting messageArgsmessageArgs - the arguments for the messagepublic FailureItemException(FailureReason reason, Throwable cause, String messageTemplate, Object... messageArgs)
The message is produced using a template that contains zero to many "{argName}" placeholders.
Each placeholder is replaced by the next available argument.
If there are too few arguments, then the message will be left with placeholders.
If there are too many arguments, then the excess arguments are appended to the
end of the message. No attempt is made to format the arguments.
See Messages.formatWithAttributes(String, Object...) for more details.
reason - the reasoncause - the causemessageTemplate - a message explaining the failure, not empty, uses "{argName}" for inserting messageArgsmessageArgs - the arguments for the messagepublic FailureItem getFailureItem()
getFailureItem in interface FailureItemProviderCopyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.