Package org.beanio

Class InvalidRecordGroupException

  • All Implemented Interfaces:
    java.io.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
    See Also:
    Serialized Form
    • Constructor Detail

      • InvalidRecordGroupException

        public InvalidRecordGroupException​(RecordContext[] context,
                                           java.lang.String message,
                                           java.lang.String groupName)
        Constructs a new InvalidRecordGroupException.
        Parameters:
        context - one or more record contexts that make up the group
        message - the error message
        groupName - the group name