Add exception style error handling to PDBFrame and XYZFrame