Package com.opengamma.strata.loader.fpml
Class FpmlParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- com.opengamma.strata.collect.result.ParseFailureException
-
- com.opengamma.strata.loader.fpml.FpmlParseException
-
- All Implemented Interfaces:
FailureItemProvider
,Serializable
public final class FpmlParseException extends ParseFailureException
Exception thrown when parsing FpML.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FpmlParseException(String message)
Creates an instance based on a message.FpmlParseException(String messageTemplate, Object... messageArgs)
Creates an instance based on a message template.
-
Method Summary
-
Methods inherited from class com.opengamma.strata.collect.result.ParseFailureException
getFailureItem
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
FpmlParseException
public FpmlParseException(String message)
Creates an instance based on a message.- Parameters:
message
- the message, null tolerant
-
FpmlParseException
public FpmlParseException(String messageTemplate, Object... messageArgs)
Creates an instance based on a message template.This uses placeholders such as '{lineNumber}' to capture important information about the parse failure. See
Messages.formatWithAttributes(String, Object...)
.- Parameters:
messageTemplate
- the message template, null tolerantmessageArgs
- the message arguments, null tolerant
-
-