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
643 644 645 |
# File 'lib/active_triples/relation.rb', line 643 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
639 640 641 |
# File 'lib/active_triples/relation.rb', line 639 def value @value end |
Instance Method Details
#message ⇒ String
649 650 651 652 |
# File 'lib/active_triples/relation.rb', line 649 def 'value must be an RDF URI, Node, Literal, or a valid datatype. '\ "See RDF::Literal.\n\tYou provided #{value.inspect}" end |