Store errors as members of the class rather than accessing each time