Exception: Bandwidth::Errors::GenericError

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

Overview

Generic error class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ GenericError

Returns a new instance of GenericError



8
9
10
11
# File 'lib/bandwidth/errors.rb', line 8

def initialize code, message
  super message
  @code = code
end

Instance Attribute Details

#codeString (readonly)

Returns Error code

Returns:

  • (String)

    Error code



6
7
8
# File 'lib/bandwidth/errors.rb', line 6

def code
  @code
end