Exception: Google::Cloud::PermissionDeniedError

Inherits:
Error
  • Object
show all
Defined in:
lib/google/cloud/errors.rb

Overview

PermissionDenied indicates the caller does not have permission to execute the specified operation. It must not be used for rejections caused by exhausting some resource (use ResourceExhausted instead for those errors). It must not be used if the caller cannot be identified (use Unauthenticated instead for those errors).

Instance Method Summary collapse

Methods inherited from Error

#body, #details, #domain, #error_info, #error_metadata, #header, #initialize, #metadata, #reason, #status_code, #status_details

Constructor Details

This class inherits a constructor from Google::Cloud::Error

Instance Method Details

#codeInteger

gRPC error code for PERMISSION_DENIED

Returns:

  • (Integer)


328
329
330
# File 'lib/google/cloud/errors.rb', line 328

def code
  7
end