Exception: FlightStats::Error

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

Overview

The exception class from which all FlightStats exceptions inherit.

Direct Known Subclasses

API::ResponseError, ConfigurationError

Instance Method Summary collapse

Instance Method Details

#set_message(message) ⇒ Object



4
5
6
# File 'lib/flightstats.rb', line 4

def set_message message
  @message = message
end

#to_sString

Returns:

  • (String)


9
10
11
# File 'lib/flightstats.rb', line 9

def to_s
  defined? @message and @message or super
end