Exception: Protocol::GRPC::InvalidArgument

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

Overview

Represents an invalid argument 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) ⇒ InvalidArgument

Initialize an invalid argument error.

Parameters:

  • options (Hash)

    a customizable set of options

Options Hash (**options):

  • :details (Object | Nil)

    Optional error details

  • :metadata (Hash)

    Custom metadata



73
74
75
# File 'lib/protocol/grpc/error.rb', line 73

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