Exception: Zx::AbortError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/zx.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message: nil, type: :error) ⇒ AbortError

Returns a new instance of AbortError.



12
13
14
15
# File 'lib/zx.rb', line 12

def initialize(message: nil, type: :error)
  @type = type
  super(message)
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



10
11
12
# File 'lib/zx.rb', line 10

def type
  @type
end