Exception: Unbound::APIError
- Defined in:
- lib/unbound/exceptions.rb
Overview
An APIError is the result of a failure in an unbound api call. It expects an error code and translates that into a human-readable string.
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error_code) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
10 11 12 |
# File 'lib/unbound/exceptions.rb', line 10 def error_code @error_code end |