Exception: InfomemeClient::Error
- Inherits:
-
StandardError
- Object
- StandardError
- InfomemeClient::Error
- Defined in:
- lib/infomeme_client/errors.rb
Direct Known Subclasses
Defined Under Namespace
Classes: InternalError, NoAccess, NotFound, RequestFailed
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(args) ⇒ Error
constructor
A new instance of Error.
- #inspect ⇒ Object
- #message ⇒ Object
Constructor Details
#initialize(args) ⇒ Error
Returns a new instance of Error.
9 10 11 12 13 |
# File 'lib/infomeme_client/errors.rb', line 9 def initialize(args) @errors = args.shift msg = args.shift super(msg) end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
7 8 9 |
# File 'lib/infomeme_client/errors.rb', line 7 def errors @errors end |
Instance Method Details
#inspect ⇒ Object
19 20 21 |
# File 'lib/infomeme_client/errors.rb', line 19 def inspect "<#{self.class.inspect} #{self.}>" end |
#message ⇒ Object
15 16 17 |
# File 'lib/infomeme_client/errors.rb', line 15 def "#{super} Errors: #{errors.inspect}" end |