Exception: Lingo::BackendNotAvailableError

Inherits:
LingoError
  • Object
show all
Defined in:
lib/lingo/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LingoError

#class_name, #error

Constructor Details

#initialize(mod, file) ⇒ BackendNotAvailableError



73
74
75
# File 'lib/lingo/error.rb', line 73

def initialize(mod, file)
  @mod, @file = mod, file
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file



71
72
73
# File 'lib/lingo/error.rb', line 71

def file
  @file
end

#modObject (readonly)

Returns the value of attribute mod



71
72
73
# File 'lib/lingo/error.rb', line 71

def mod
  @mod
end

Instance Method Details

#to_sObject



77
78
79
# File 'lib/lingo/error.rb', line 77

def to_s
  "Backend not available `#{mod}' for `#{file}'."
end