|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.beanio.BeanIOException org.beanio.BeanReaderException org.beanio.InvalidRecordException
public class InvalidRecordException
Exception thrown when a record or one of its fields does not pass validation during unmarshalling.
An invalid record does not affect the state of a BeanReader
, and
subsequent calls to read() are not affected.
Constructor Summary | |
---|---|
|
InvalidRecordException(RecordContext context,
String message)
Constructs a new InvalidRecordException. |
protected |
InvalidRecordException(String message)
Constructs a new InvalidRecordException. |
Method Summary | |
---|---|
protected void |
appendMessageDetails(StringBuilder s)
Called by toString() to append record context details to the
error message. |
String |
getRecordName()
Returns the name of the record or group that failed validation. |
String |
toString()
|
Methods inherited from class org.beanio.BeanReaderException |
---|
getContext, getRecordContext, getRecordContext, getRecordCount, setRecordContext, setRecordContext |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected InvalidRecordException(String message)
message
- the error messagepublic InvalidRecordException(RecordContext context, String message)
context
- the RecordContext
that caused the exceptionmessage
- the error messageMethod Detail |
---|
public String getRecordName()
public String toString()
toString
in class Throwable
protected void appendMessageDetails(StringBuilder s)
toString()
to append record context details to the
error message.
s
- the message to append
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |