Exception: NewsAggregator::BadRequestException
- Inherits:
-
StandardError
- Object
- StandardError
- NewsAggregator::BadRequestException
- Defined in:
- lib/news_aggregator/exceptions.rb
Overview
BadRequestException
Instance Method Summary collapse
-
#initialize(json) ⇒ BadRequestException
constructor
A new instance of BadRequestException.
Constructor Details
#initialize(json) ⇒ BadRequestException
Returns a new instance of BadRequestException.
13 14 15 |
# File 'lib/news_aggregator/exceptions.rb', line 13 def initialize(json) puts json["message"] || super end |