All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.es.errors.EvaluationJsonPointerError.mjs Maven / Gradle / Ivy

import JsonPointerError from "./JsonPointerError.mjs";
class EvaluationJsonPointerError extends JsonPointerError {
  pointer;
  tokens;
  failedToken;
  failedTokenPosition;
  element;
  constructor(message, structuredOptions) {
    super(message, structuredOptions);
    if (typeof structuredOptions !== 'undefined') {
      this.pointer = structuredOptions.pointer;
      if (Array.isArray(structuredOptions.tokens)) {
        this.tokens = [...structuredOptions.tokens];
      }
      this.failedToken = structuredOptions.failedToken;
      this.failedTokenPosition = structuredOptions.failedTokenPosition;
      this.element = structuredOptions.element;
    }
  }
}
export default EvaluationJsonPointerError;




© 2015 - 2024 Weber Informatics LLC | Privacy Policy