Exception: ThreeScaleToolbox::ThreeScaleApiError
- Defined in:
- lib/3scale_toolbox/error.rb
Instance Attribute Summary collapse
-
#apierrors ⇒ Object
readonly
Returns the value of attribute apierrors.
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(msg = '', apierrors = {}) ⇒ ThreeScaleApiError
constructor
A new instance of ThreeScaleApiError.
- #message ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(msg = '', apierrors = {}) ⇒ ThreeScaleApiError
Returns a new instance of ThreeScaleApiError.
39 40 41 42 |
# File 'lib/3scale_toolbox/error.rb', line 39 def initialize(msg = '', apierrors = {}) @apierrors = apierrors super(msg) end |
Instance Attribute Details
#apierrors ⇒ Object (readonly)
Returns the value of attribute apierrors.
37 38 39 |
# File 'lib/3scale_toolbox/error.rb', line 37 def apierrors @apierrors end |
Instance Method Details
#code ⇒ Object
48 49 50 |
# File 'lib/3scale_toolbox/error.rb', line 48 def code 'E_3SCALE_API' end |
#message ⇒ Object
44 45 46 |
# File 'lib/3scale_toolbox/error.rb', line 44 def "#{super}. Errors: #{apierrors}" end |