Exception: AkamaiApi::CCU::Error
- Defined in:
- lib/akamai_api/ccu/error.rb
Overview
Error received after a request done through the Akamai CCU interface.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#raw ⇒ Hash<String, Object>
readonly
Raw Raw object describing the error.
Instance Method Summary collapse
-
#code ⇒ Fixnum
(also: #http_status)
Response HTTP Status Code describing the error.
-
#described_by ⇒ String
URI pointing to a verbose error description.
-
#detail ⇒ String
Specific detail about the error.
-
#initialize(raw) ⇒ Error
constructor
A new instance of Error.
-
#support_id ⇒ String
Reference provided to Customer Care when needed.
Constructor Details
#initialize(raw) ⇒ Error
Returns a new instance of Error.
10 11 12 13 |
# File 'lib/akamai_api/ccu/error.rb', line 10 def initialize raw @raw = raw super raw['title'] || raw['detail'] end |
Instance Attribute Details
#raw ⇒ Hash<String, Object> (readonly)
Returns raw Raw object describing the error.
7 8 9 |
# File 'lib/akamai_api/ccu/error.rb', line 7 def raw @raw end |
Instance Method Details
#code ⇒ Fixnum Also known as: http_status
Returns Response HTTP Status Code describing the error.
28 29 30 |
# File 'lib/akamai_api/ccu/error.rb', line 28 def code raw['httpStatus'] end |
#described_by ⇒ String
Returns URI pointing to a verbose error description.
34 35 36 |
# File 'lib/akamai_api/ccu/error.rb', line 34 def described_by raw['describedBy'] end |
#detail ⇒ String
Returns Specific detail about the error.
21 22 23 |
# File 'lib/akamai_api/ccu/error.rb', line 21 def detail raw['detail'] end |
#support_id ⇒ String
Returns Reference provided to Customer Care when needed.
16 17 18 |
# File 'lib/akamai_api/ccu/error.rb', line 16 def support_id raw['supportId'] end |