Exception: InterMine::Metadata::PathException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- InterMine::Metadata::PathException
- Defined in:
- lib/intermine/model.rb
Overview
An exception class for handling path parsing errors.
Instance Attribute Summary collapse
-
#pathstring ⇒ Object
readonly
Returns the value of attribute pathstring.
-
#subclasses ⇒ Object
readonly
Returns the value of attribute subclasses.
Instance Method Summary collapse
-
#initialize(pathstring = nil, subclasses = {}, message = nil) ⇒ PathException
constructor
A new instance of PathException.
-
#to_s ⇒ Object
The string representation.
Constructor Details
#initialize(pathstring = nil, subclasses = {}, message = nil) ⇒ PathException
Returns a new instance of PathException.
910 911 912 913 914 |
# File 'lib/intermine/model.rb', line 910 def initialize(pathstring=nil, subclasses={}, =nil) @pathstring = pathstring @subclasses = subclasses = end |
Instance Attribute Details
#pathstring ⇒ Object (readonly)
Returns the value of attribute pathstring.
908 909 910 |
# File 'lib/intermine/model.rb', line 908 def pathstring @pathstring end |
#subclasses ⇒ Object (readonly)
Returns the value of attribute subclasses.
908 909 910 |
# File 'lib/intermine/model.rb', line 908 def subclasses @subclasses end |
Instance Method Details
#to_s ⇒ Object
The string representation.
917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 |
# File 'lib/intermine/model.rb', line 917 def to_s if @pathstring.nil? if .nil? return self.class.name else return end end preamble = "Unable to resolve '#{@pathstring}': " = " (SUBCLASSES => #{@subclasses.inspect})" if .nil? return preamble + else return preamble + + end end |