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

- (BackendNotAvailableError) initialize(mod, file)

Returns a new instance of BackendNotAvailableError



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

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

Instance Attribute Details

- (Object) file (readonly)

Returns the value of attribute file



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

def file
  @file
end

- (Object) mod (readonly)

Returns the value of attribute mod



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

def mod
  @mod
end

Instance Method Details

- (Object) to_s



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

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