Exception: Byebug::DAP::InvalidRequestArgumentError Private

Inherits:
StandardError
  • Object
show all
Defined in:
lib/byebug/dap/helpers/invalid_request_argument_error.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Raised when the client sends a request with invalid arguments

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, value: nil, scope: nil) ⇒ InvalidRequestArgumentError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of InvalidRequestArgumentError.



16
17
18
19
20
# File 'lib/byebug/dap/helpers/invalid_request_argument_error.rb', line 16

def initialize(error, value: nil, scope: nil)
  @error = error
  @value = value
  @scope = scope
end

Instance Attribute Details

#errorstd:Symbol|std:String (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The error kind or message.

Returns:

  • (std:Symbol|std:String)


8
9
10
# File 'lib/byebug/dap/helpers/invalid_request_argument_error.rb', line 8

def error
  @error
end

#scopeObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The error scope.



14
15
16
# File 'lib/byebug/dap/helpers/invalid_request_argument_error.rb', line 14

def scope
  @scope
end

#valueObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

The error value.



11
12
13
# File 'lib/byebug/dap/helpers/invalid_request_argument_error.rb', line 11

def value
  @value
end