Exception: Lingo::SourceFileNotFoundError

Inherits:
FileNotFoundError show all
Defined in:
lib/lingo/error.rb

Instance Attribute Summary collapse

Attributes inherited from FileNotFoundError

#name

Instance Method Summary collapse

Methods inherited from LingoError

#class_name, #error

Constructor Details

#initialize(name, id) ⇒ SourceFileNotFoundError

Returns a new instance of SourceFileNotFoundError



163
164
165
166
# File 'lib/lingo/error.rb', line 163

def initialize(name, id)
  super(name)
  @id = id
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id



161
162
163
# File 'lib/lingo/error.rb', line 161

def id
  @id
end

Instance Method Details

#to_sObject



168
169
170
# File 'lib/lingo/error.rb', line 168

def to_s
  "No such source file `#{name}' for `#{id}'."
end