Class ParsingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.arpnetworking.metrics.common.parsers.exceptions.ParsingException
- All Implemented Interfaces:
Serializable
Exception thrown when a
Parser
fails to parse the data.- Author:
- Brandon Arp (brandon dot arp at inscopemetrics dot io)
- See Also:
-
Constructor Summary
ConstructorDescriptionParsingException
(String message, byte[] offendingData) Public constructor with a description.ParsingException
(String message, byte[] offendingData, Throwable cause) Public constructor with a description and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParsingException
Public constructor with a description.- Parameters:
message
- Describes the exceptional condition.offendingData
- The raw data that failed to parse.
-
ParsingException
Public constructor with a description and cause.- Parameters:
message
- Describes the exceptional condition.offendingData
- The raw data that failed to parse.cause
- Causing exception.
-
-
Method Details
-
getOffendingData
public byte[] getOffendingData()
-