}
activeRecord.dump();
} catch (IOException e) {
- throw new RecordFormatException("Error reading bytes");
+ throw new RecordFormatException("Error reading bytes", e);
}
Record[] retval = new Record[records.size()];
}
catch (Exception introspectionException)
{
- introspectionException.printStackTrace();
- throw new RecordFormatException(
- "Unable to construct record instance, the following exception occured: " + introspectionException.getMessage());
+ throw new RecordFormatException("Unable to construct record instance" , introspectionException);
}
if (retval instanceof RKRecord)
{
field_7_expression_len = in.readShort();
field_8_parsed_expr = Ptg.createParsedExpressionTokens(field_7_expression_len, in);
} catch (java.lang.UnsupportedOperationException uoe) {
- throw new RecordFormatException(uoe.toString());
+ throw new RecordFormatException(uoe);
}
}
}
catch (Exception introspectionException)
{
- introspectionException.printStackTrace();
- throw new RecordFormatException(
- "Unable to construct record instance, the following exception occured: " + introspectionException.getMessage());
+ throw new RecordFormatException("Unable to construct record instance",introspectionException);
}
if (retval instanceof RKRecord)
{
}
catch (Exception illegalArgumentException)
{
- illegalArgumentException.printStackTrace();
throw new RecordFormatException(
- "Unable to determine record types");
+ "Unable to determine record types", illegalArgumentException);
}
result.put(new Short(sid), constructor);
}
{
super(exception);
}
+
+ public RecordFormatException(String exception, Throwable thr) {
+ super(exception, thr);
+ }
+
+ public RecordFormatException(Throwable thr) {
+ super(thr);
+ }
}
//Dont increment the pos just yet (technically we are at the start of
//the record stream until nextRecord is called).
} catch (IOException ex) {
- throw new RecordFormatException("Error reading bytes");
+ throw new RecordFormatException("Error reading bytes", ex);
}
}
default :
//retval = new UnknownPtg();
- throw new java.lang.UnsupportedOperationException(
+ throw new java.lang.UnsupportedOperationException(" Unknown Ptg in Formula: 0x"+
Integer.toHexString(( int ) id) + " (" + ( int ) id + ")");
}