jsonld
Version:
A JSON-LD Processor and API implementation in JavaScript.
24 lines (22 loc) • 514 B
JavaScript
/*
* Copyright (c) 2017 Digital Bazaar, Inc. All rights reserved.
*/
;
module.exports = class JsonLdError extends Error {
/**
* Creates a JSON-LD Error.
*
* @param msg the error message.
* @param type the error type.
* @param details the error details.
*/
constructor(
message = 'An unspecified JSON-LD error occurred.',
name = 'jsonld.Error',
details = {}) {
super(message);
this.name = name;
this.message = message;
this.details = details;
}
};