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 = nil) ⇒ StandardError

Returns a new instance of StandardError.

Parameters:

  • message (String, nil) (defaults to: nil)

    a description of the exception



56
57
58
59
# File 'lib/balanced/error.rb', line 56

def initialize(message = nil)
  @message = message
  super(message)
end

Instance Attribute Details

#messageObject (readonly) Also known as: error_message

Returns the value of attribute message.



52
53
54
# File 'lib/balanced/error.rb', line 52

def message
  @message
end