org.beanio
Class InvalidRecordGroupException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.beanio.BeanIOException
org.beanio.BeanReaderException
org.beanio.InvalidRecordException
org.beanio.InvalidRecordGroupException
- All Implemented Interfaces:
- Serializable
public class InvalidRecordGroupException
- extends InvalidRecordException
Exception thrown when one or more records fail validation while unmarshalling
a record group.
The getRecordName()
method will return the name of the group (from
the mapping file) that failed validation.
An invalid record group does not affect the state of a BeanReader
, and
subsequent calls to read() are not affected.
- Since:
- 2.0
- Author:
- Kevin Seim
- See Also:
- Serialized Form
InvalidRecordGroupException
public InvalidRecordGroupException(RecordContext[] context,
String message,
String groupName)
- Constructs a new InvalidRecordGroupException.
- Parameters:
context
- one or more record contexts that make up the groupmessage
- the error messagegroupName
- the group name
getRecordName
public String getRecordName()
- Description copied from class:
InvalidRecordException
- Returns the name of the record or group that failed validation.
- Overrides:
getRecordName
in class InvalidRecordException
- Returns:
- the record or group name
appendMessageDetails
protected void appendMessageDetails(StringBuilder s)
- Description copied from class:
InvalidRecordException
- Called by
InvalidRecordException.toString()
to append record context details to the
error message.
- Overrides:
appendMessageDetails
in class InvalidRecordException
- Parameters:
s
- the message to append
Copyright © 2010-2013 Kevin Seim