Exception: Timber::CLI::API::UnrecognizedAPIResponse
- Inherits:
-
StandardError
- Object
- StandardError
- Timber::CLI::API::UnrecognizedAPIResponse
- 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
-
#initialize(res) ⇒ UnrecognizedAPIResponse
constructor
A new instance of UnrecognizedAPIResponse.
- #message ⇒ Object
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
#message ⇒ Object
51 52 53 54 55 |
# File 'lib/timber/cli/api.rb', line 51 def "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 |