Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions library/src/main/java/bio/terra/pfb/PfbReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static List<String> show(String fileLocation) throws IOException {
}
return data;
} catch (IOException e) {
throw new InvalidPfbException("Error reading PFB Value object");
throw new InvalidPfbException("Error reading PFB Value object", e);
}
}

Expand All @@ -72,7 +72,7 @@ public static DataFileStream<GenericRecord> getGenericRecordsStream(String fileL
reader.next();
return reader;
} catch (Exception e) {
throw new InvalidPfbException("Error reading PFB Value object");
throw new InvalidPfbException("Error reading PFB Value object", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ public class InvalidPfbException extends RuntimeException {
public InvalidPfbException(String message) {
super(message);
}

public InvalidPfbException(String message, Throwable cause) {
super(message, cause);
}
}