Exception: JSON::LD::InvalidContext

Inherits:
Exception
  • Object
show all
Defined in:
lib/json/ld.rb

Direct Known Subclasses

LoadError, Syntax

Defined Under Namespace

Classes: LoadError, Syntax

Constant Summary collapse

INVALID_SYNTAX =

A general syntax error was detected in the @context. For example, if a @type key maps to anything other than @id or an absolute IRI, this exception would be raised.

1
LOAD_ERROR =

There was a problem encountered loading a remote context.

2

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



122
123
124
# File 'lib/json/ld.rb', line 122

def code
  @code
end