Exception: Poke::API::Errors::InvalidLevel

Inherits:
StandardError
  • Object
show all
Defined in:
lib/poke-api/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(level) ⇒ InvalidLevel

Returns a new instance of InvalidLevel.



65
66
67
# File 'lib/poke-api/errors.rb', line 65

def initialize(level)
  super("Level #{level} is invalid, must be between 0 and 30.")
end