Class ExistenceError
In: lib/error/existence_error.rb
Parent: StandardError

An Error used for cases where something non-existing is requested in situations where this cannot be resolved by creating a new something.

Mainly used in from_h functions (of Word, Sense, Concept, Logi and LogiVersion)

Methods

message   new  

Attributes

nonexisting_part  [RW] 

Public Class methods

[Source]

    # File lib/error/existence_error.rb, line 22
22:   def initialize(nonexisting_part)
23:     @nonexisting_part = nonexisting_part
24:   end

Public Instance methods

[Source]

    # File lib/error/existence_error.rb, line 26
26:   def message
27:     msg = super.to_s + ': '
28:     if @nonexisting_part.kind_of?(Hash)
29:       msg += @nonexisting_part.inspect
30:     else
31:       msg += @nonexisting_part.to_s
32:     end
33:     return msg
34:   end

[Validate]