Exception: Bandwidth::BandwidthNotFoundException
- Inherits:
-
APIException
- Object
- StandardError
- APIException
- Bandwidth::BandwidthNotFoundException
- Defined in:
- lib/bandwidth/voice_lib/voice/exceptions/bandwidth_not_found_exception.rb
Overview
404 Not Found
Instance Attribute Summary collapse
-
#error ⇒ String
TODO: Write general description for this method.
-
#message ⇒ String
TODO: Write general description for this method.
-
#path ⇒ String
TODO: Write general description for this method.
-
#status ⇒ String
TODO: Write general description for this method.
-
#timestamp ⇒ String
TODO: Write general description for this method.
Attributes inherited from APIException
Instance Method Summary collapse
-
#initialize(reason, response) ⇒ BandwidthNotFoundException
constructor
The constructor.
-
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash.
Constructor Details
#initialize(reason, response) ⇒ BandwidthNotFoundException
The constructor.
32 33 34 35 36 |
# File 'lib/bandwidth/voice_lib/voice/exceptions/bandwidth_not_found_exception.rb', line 32 def initialize(reason, response) super(reason, response) hash = APIHelper.json_deserialize(@response.raw_body) unbox(hash) end |
Instance Attribute Details
#error ⇒ String
TODO: Write general description for this method
19 20 21 |
# File 'lib/bandwidth/voice_lib/voice/exceptions/bandwidth_not_found_exception.rb', line 19 def error @error end |
#message ⇒ String
TODO: Write general description for this method
23 24 25 |
# File 'lib/bandwidth/voice_lib/voice/exceptions/bandwidth_not_found_exception.rb', line 23 def @message end |
#path ⇒ String
TODO: Write general description for this method
27 28 29 |
# File 'lib/bandwidth/voice_lib/voice/exceptions/bandwidth_not_found_exception.rb', line 27 def path @path end |
#status ⇒ String
TODO: Write general description for this method
15 16 17 |
# File 'lib/bandwidth/voice_lib/voice/exceptions/bandwidth_not_found_exception.rb', line 15 def status @status end |
#timestamp ⇒ String
TODO: Write general description for this method
11 12 13 |
# File 'lib/bandwidth/voice_lib/voice/exceptions/bandwidth_not_found_exception.rb', line 11 def @timestamp end |
Instance Method Details
#unbox(hash) ⇒ Object
Populates this object by extracting properties from a hash. response body.
41 42 43 44 45 46 47 |
# File 'lib/bandwidth/voice_lib/voice/exceptions/bandwidth_not_found_exception.rb', line 41 def unbox(hash) @timestamp = hash['timestamp'] @status = hash['status'] @error = hash['error'] @message = hash['message'] @path = hash['path'] end |