Exception: EvalIn::BadLanguageError

Inherits:
EvalInError
  • Object
show all
Defined in:
lib/eval-in/exceptions.rb

Overview

Raised when EvalIn.eval is given a bad input language.

Since:

  • 0.0.1

Instance Method Summary collapse

Constructor Details

#initialize(lang) ⇒ BadLanguageError

Returns a new instance of BadLanguageError.

Since:

  • 0.0.1



17
18
19
# File 'lib/eval-in/exceptions.rb', line 17

def initialize(lang)
  super "No such language: #{lang}"
end