Exception: LanguageLayer::LanguagesException

Inherits:
Exception
  • Object
show all
Defined in:
lib/language_detection/languages/languages_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ LanguagesException

Returns a new instance of LanguagesException.



9
10
11
# File 'lib/language_detection/languages/languages_exception.rb', line 9

def initialize(error)
  self.error = error
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



7
8
9
# File 'lib/language_detection/languages/languages_exception.rb', line 7

def error
  @error
end