Added some error helper methods