Class HashError
In: lib/error/hash_error.rb
Parent: StandardError

This Error is raised if a hash is invalid, for example because a required element is missing.

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

Methods

message   new  

Attributes

part_hash  [RW] 

Public Class methods

[Source]

    # File lib/error/hash_error.rb, line 21
21:   def initialize(part_hash)
22:     @part_hash = part_hash
23:   end

Public Instance methods

[Source]

    # File lib/error/hash_error.rb, line 25
25:   def message
26:     super.to_s + ': ' + @part_hash.to_s
27:   end

[Validate]