Exception: RequestHandler::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- RequestHandler::BaseError
- Defined in:
- lib/request_handler/error.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ BaseError
constructor
A new instance of BaseError.
- #message ⇒ Object
Constructor Details
#initialize(errors) ⇒ BaseError
Returns a new instance of BaseError.
6 7 8 9 |
# File 'lib/request_handler/error.rb', line 6 def initialize(errors) @errors = errors super() end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
5 6 7 |
# File 'lib/request_handler/error.rb', line 5 def errors @errors end |
Instance Method Details
#message ⇒ Object
11 12 13 14 15 |
# File 'lib/request_handler/error.rb', line 11 def errors.map do |key, value| "#{key}: #{value}" end.join(', ') end |