create-error-class