Exception: Timber::CLI::API::UnrecognizedAPIResponse

Inherits:
StandardError
  • Object
show all
Defined in:
lib/timber/cli/api.rb

Overview

Raised when the API returns a response that a particular method is not expecting.

Instance Method Summary collapse

Constructor Details

#initialize(res) ⇒ UnrecognizedAPIResponse

Returns a new instance of UnrecognizedAPIResponse.



47
48
49
# File 'lib/timber/cli/api.rb', line 47

def initialize(res)
  @res = res
end

Instance Method Details

#messageObject



51
52
53
54
55
# File 'lib/timber/cli/api.rb', line 51

def message
  "Uh oh, we received a response from the Timber API that was not recognized " \
    "(#{res.code}). We've been notified of the issue, but please feel free to " \
    "yell at us via email to make sure we're aware: [email protected]"
end