Exception: ActiveTriples::Relation::ValueError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ActiveTriples::Relation::ValueError
- Defined in:
- lib/active_triples/relation.rb
Overview
An error class for unallowable values in relations.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ ValueError
constructor
A new instance of ValueError.
- #message ⇒ String
Constructor Details
#initialize(value) ⇒ ValueError
Returns a new instance of ValueError.
662 663 664 |
# File 'lib/active_triples/relation.rb', line 662 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
658 659 660 |
# File 'lib/active_triples/relation.rb', line 658 def value @value end |
Instance Method Details
#message ⇒ String
668 669 670 671 |
# File 'lib/active_triples/relation.rb', line 668 def 'value must be an RDF URI, Node, Literal, or a valid datatype. '\ "See RDF::Literal.\n\tYou provided #{value.inspect}" end |