Exception: EvalIn::BadLanguageError
- Inherits:
-
EvalInError
- Object
- RuntimeError
- EvalInError
- EvalIn::BadLanguageError
- Defined in:
- lib/eval-in/exceptions.rb
Overview
Raised when EvalIn.eval is given a bad input language.
Instance Method Summary collapse
-
#initialize(lang) ⇒ BadLanguageError
constructor
A new instance of BadLanguageError.
Constructor Details
#initialize(lang) ⇒ BadLanguageError
Returns a new instance of BadLanguageError.
17 18 19 |
# File 'lib/eval-in/exceptions.rb', line 17 def initialize(lang) super "No such language: #{lang}" end |