public class InvalidRecordException extends BeanReaderException
An invalid record does not affect the state of a BeanReader, and
subsequent calls to read() are not affected.
| Modifier | Constructor and Description |
|---|---|
|
InvalidRecordException(RecordContext context,
String message)
Constructs a new InvalidRecordException.
|
protected |
InvalidRecordException(String message)
Constructs a new InvalidRecordException.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
getContext, getRecordContext, getRecordContext, getRecordCount, setRecordContext, setRecordContextaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceprotected InvalidRecordException(String message)
message - the error messagepublic InvalidRecordException(RecordContext context, String message)
context - the RecordContext that caused the exceptionmessage - the error messagepublic String getRecordName()
protected void appendMessageDetails(StringBuilder s)
toString() to append record context details to the
error message.s - the message to append