Exception: Cerbos::Error::NotOK

Inherits:
Cerbos::Error show all
Defined in:
lib/cerbos/error.rb

Overview

An error indicating an unsuccessful gRPC operation.

Instance Attribute Summary collapse

Instance Attribute Details

#codeInteger (readonly)

The gRPC status code.

Returns:

  • (Integer)

See Also:



28
29
30
# File 'lib/cerbos/error.rb', line 28

def code
  @code
end

#detailsString (readonly)

The gRPC error details.

Returns:

  • (String)


33
34
35
# File 'lib/cerbos/error.rb', line 33

def details
  @details
end

#metadataHash (readonly)

The gRPC error metadata.

Returns:

  • (Hash)


38
39
40
# File 'lib/cerbos/error.rb', line 38

def 
  @metadata
end