1 package net.sf.cobol2j; 2 3 import java.util.List; 4 5 6 public class RecordParseException extends Exception { 7 private List recordDef; 8 private List partialRecord; 9 10 public RecordParseException(String msg, List rDef, List pRec, 11 Throwable cause) { 12 super(msg, cause); 13 recordDef = rDef; 14 partialRecord = pRec; 15 } 16 17 public List getPartialRecord() { 18 return partialRecord; 19 } 20 21 public List getRecordDef() { 22 return recordDef; 23 } 24 25 public byte[] getFieldData() { 26 return ((FieldParseException) getCause()).getOryginalData(); 27 } 28 }