Exception: LLDB::OperationError

Inherits:
LLDBError
  • Object
show all
Defined in:
lib/lldb/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operation, error) ⇒ OperationError

Returns a new instance of OperationError.

RBS:

  • operation: String

  • error: Error

  • return: void



24
25
26
27
28
29
30
# File 'lib/lldb/error.rb', line 24

def initialize(operation, error)
  @operation = operation
  @error = error
  @code = error.code
  @error_type = error.type
  super("LLDB operation '#{operation}' failed (type=#{error.type_name}, code=#{error.code}): #{error.message}")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



19
20
21
# File 'lib/lldb/error.rb', line 19

def code
  @code
end

#errorObject (readonly)

Returns the value of attribute error.



19
20
21
# File 'lib/lldb/error.rb', line 19

def error
  @error
end

#error_typeObject (readonly)

Returns the value of attribute error_type.



19
20
21
# File 'lib/lldb/error.rb', line 19

def error_type
  @error_type
end

#operationObject (readonly)

Returns the value of attribute operation.



19
20
21
# File 'lib/lldb/error.rb', line 19

def operation
  @operation
end