Wrap up the error numbers as Ruby objects.