public class IllegalArgFailureException extends IllegalArgumentException implements FailureItemProvider
| Constructor and Description |
|---|
IllegalArgFailureException(FailureItem item)
Returns an exception wrapping the failure item.
|
IllegalArgFailureException(String messageTemplate,
Object... messageArgs)
Returns an exception from a message.
|
IllegalArgFailureException(Throwable cause,
String messageTemplate,
Object... messageArgs)
Returns an exception from a 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 IllegalArgFailureException(FailureItem item)
The failure item should have a reason of 'Invalid'.
item - the failure itempublic IllegalArgFailureException(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.
messageTemplate - a message explaining the failure, not empty, uses "{argName}" for inserting messageArgsmessageArgs - the arguments for the messagepublic IllegalArgFailureException(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.
cause - 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.