Exception: Jeckle::NoSuchAPIError

Inherits:
ArgumentError show all
Defined in:
lib/jeckle/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(api) ⇒ NoSuchAPIError

Returns a new instance of NoSuchAPIError.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/jeckle/errors.rb', line 5

def initialize(api)
  message = %{The API name '#{api}' doesn't exist in Jeckle definitions.

    Heckle: - Hey chum, what we can do now?
    Jeckle: - Old chap, you need to put the right API name!
    Heckle: - Hey pal, tell me the APIs then!
    Jeckle: - Deal the trays, old thing: #{Jeckle::Setup.registered_apis.keys}.
  }

  super message
end