Exception: Lingo::BackendNotAvailableError

Inherits:
BackendError 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(name, file, err) ⇒ BackendNotAvailableError

Returns a new instance of BackendNotAvailableError.



79
80
81
# File 'lib/lingo/error.rb', line 79

def initialize(name, file, err)
  @name, @file, @err = name, file, err
end

Instance Attribute Details

#errObject (readonly)

Returns the value of attribute err.



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

def err
  @err
end

#fileObject (readonly)

Returns the value of attribute file.



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

def file
  @file
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#to_sObject



83
84
85
86
# File 'lib/lingo/error.rb', line 83

def to_s
  msg = "Backend not available `#{name}'"
  error(file ? msg << " for `#{file}'" : msg)
end