Exception: Balanced::StandardError

Inherits:
Error
  • Object
show all
Defined in:
lib/balanced/error.rb

Overview

General error class for non API response exceptions

Instance Attribute Summary collapse

Attributes inherited from Error

#response

Instance Method Summary collapse

Methods inherited from Error

#body

Constructor Details

#initialize(message) ⇒ StandardError

Returns a new instance of StandardError.



45
46
47
# File 'lib/balanced/error.rb', line 45

def initialize(message)
  @message = message
end

Instance Attribute Details

#messageObject (readonly) Also known as: error_message

Returns the value of attribute message.



42
43
44
# File 'lib/balanced/error.rb', line 42

def message
  @message
end