Exception: Poke::API::Errors::InvalidLevel
- Inherits:
-
StandardError
- Object
- StandardError
- Poke::API::Errors::InvalidLevel
- Defined in:
- lib/poke-api/errors.rb
Instance Method Summary collapse
-
#initialize(level) ⇒ InvalidLevel
constructor
A new instance of InvalidLevel.
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 |