Exception: EBSCO::EDS::Error
- Inherits:
-
StandardError
- Object
- StandardError
- EBSCO::EDS::Error
- Defined in:
- lib/ebsco/eds/error.rb
Direct Known Subclasses
BadRequest, ConnectionFailed, Forbidden, InternalServerError, MissingDependency, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized
Instance Attribute Summary collapse
-
#fault ⇒ Object
readonly
Returns the value of attribute fault.
Instance Method Summary collapse
-
#initialize(errors = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(errors = nil) ⇒ Error
6 7 8 9 10 11 |
# File 'lib/ebsco/eds/error.rb', line 6 def initialize(errors = nil) if errors @fault = errors super(errors[:error_body]) end end |
Instance Attribute Details
#fault ⇒ Object (readonly)
Returns the value of attribute fault.
5 6 7 |
# File 'lib/ebsco/eds/error.rb', line 5 def fault @fault end |