Exception: Protocol::GRPC::Internal

Inherits:
Error
  • Object
show all
Defined in:
lib/protocol/grpc/error.rb

Overview

Represents an internal server error.

Instance Attribute Summary

Attributes inherited from Error

#details, #metadata, #status_code

Instance Method Summary collapse

Methods inherited from Error

error_class_for_status, for

Constructor Details

#initialize(message = nil, **options) ⇒ Internal

Initialize an internal server error.

Parameters:

  • options (Hash)

    a customizable set of options

Options Hash (**options):

  • :details (Object | Nil)

    Optional error details

  • :metadata (Hash)

    Custom metadata



106
107
108
# File 'lib/protocol/grpc/error.rb', line 106

def initialize(message = nil, **options)
	super(Status::INTERNAL, message, **options)
end