throw an exception on notice/error