Package org.beanio
Class MalformedRecordException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.beanio.BeanIOException
-
- org.beanio.BeanReaderException
-
- org.beanio.MalformedRecordException
-
- All Implemented Interfaces:
java.io.Serializable
public class MalformedRecordException extends BeanReaderException
Exception thrown when a record does not adhere to the expected syntax of the stream format. Subsequent calls toBeanReader.read()
are not likely to be successful.- Since:
- 1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MalformedRecordException(RecordContext context, java.lang.String message)
Constructs a newMalformedRecordException
.MalformedRecordException(RecordContext context, java.lang.String message, java.lang.Throwable cause)
Constructs a newMalformedRecordException
.
-
Method Summary
-
Methods inherited from class org.beanio.BeanReaderException
getContext, getRecordContext, getRecordContext, getRecordCount, setRecordContext, setRecordContext
-
-
-
-
Constructor Detail
-
MalformedRecordException
public MalformedRecordException(RecordContext context, java.lang.String message)
Constructs a newMalformedRecordException
.- Parameters:
context
- the record context for the malformed recordmessage
- the error message
-
MalformedRecordException
public MalformedRecordException(RecordContext context, java.lang.String message, java.lang.Throwable cause)
Constructs a newMalformedRecordException
.- Parameters:
context
- the record context for the malformed recordmessage
- the error messagecause
- the root cause
-
-