Exception: NewsAggregator::BadRequestException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/news_aggregator/exceptions.rb

Overview

BadRequestException

Instance Method Summary collapse

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