Exception: ZeroRuby::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/zero_ruby/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, details: nil) ⇒ Error

Returns a new instance of Error.



7
8
9
10
# File 'lib/zero_ruby/errors.rb', line 7

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

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



5
6
7
# File 'lib/zero_ruby/errors.rb', line 5

def details
  @details
end

Instance Method Details

#error_typeObject

Returns the Zero protocol error type string



13
14
15
# File 'lib/zero_ruby/errors.rb', line 13

def error_type
  "app"
end