port error exceptions to separate files