Exception: Lingo::NameNotFoundError
- Inherits:
-
LingoError
- Object
- StandardError
- LingoError
- Lingo::NameNotFoundError
- Defined in:
- lib/lingo/error.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(klass, name) ⇒ NameNotFoundError
constructor
A new instance of NameNotFoundError.
- #to_s ⇒ Object
Methods inherited from LingoError
Constructor Details
#initialize(klass, name) ⇒ NameNotFoundError
Returns a new instance of NameNotFoundError.
197 198 199 |
# File 'lib/lingo/error.rb', line 197 def initialize(klass, name) @klass, @name = klass, name end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
195 196 197 |
# File 'lib/lingo/error.rb', line 195 def klass @klass end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
195 196 197 |
# File 'lib/lingo/error.rb', line 195 def name @name end |
Instance Method Details
#to_s ⇒ Object
201 202 203 |
# File 'lib/lingo/error.rb', line 201 def to_s "No such #{class_name} type `#{name}'." end |