Exception: NewsAggregator::UnauthorizedException

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

Overview

UnauthorizedException

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ UnauthorizedException

Returns a new instance of UnauthorizedException.



6
7
8
# File 'lib/news_aggregator/exceptions.rb', line 6

def initialize(json)
  puts json["message"] || super
end