Exception: BandwidthIris::Errors::GenericError

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

Overview

Generic error class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message, http_status) ⇒ GenericError

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of GenericError.



12
13
14
15
16
# File 'lib/bandwidth-iris/errors.rb', line 12

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

Instance Attribute Details

#codeString (readonly)

Returns Error code.

Returns:

  • (String)

    Error code



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

def code
  @code
end

#http_statusString (readonly)

Returns Http status code.

Returns:

  • (String)

    Http status code



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

def http_status
  @http_status
end