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

- (SourceFileNotFoundError) initialize(name, id)



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

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

Instance Attribute Details

- (Object) id (readonly)

Returns the value of attribute id



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

def id
  @id
end

Instance Method Details

- (Object) to_s



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

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