Exception: Spoom::Sorbet::Error

Inherits:
StandardError
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/spoom/sorbet.rb

Direct Known Subclasses

Killed, Segfault

Defined Under Namespace

Classes: Killed, Segfault

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, result) ⇒ Error

Returns a new instance of Error.



29
30
31
32
33
# File 'lib/spoom/sorbet.rb', line 29

def initialize(message, result)
  super(message)

  @result = result
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



21
22
23
# File 'lib/spoom/sorbet.rb', line 21

def result
  @result
end