Add specialized exceptions to the API