Class InitializationError
Defined in: jsv.js.
Constructor Attributes | Constructor Name and Description |
---|---|
InitializationError(instance, schema, attr, message, details)
The exception that is thrown when a schema fails to be created.
|
Class Detail
InitializationError(instance, schema, attr, message, details)
The exception that is thrown when a schema fails to be created.
- Parameters:
- {JSONInstance|String} instance
- The instance (or instance URI) that is invalid
- {JSONSchema|String} schema
- The schema (or schema URI) that was validating the instance
- {String} attr
- The attribute that failed to validated
- {String} message
- A user-friendly message on why the schema attribute failed to validate the instance
- {Any} details
- The value of the schema attribute