Added Private getErrors method