Added exceptions to header file