// Ported from js-yaml v3.13.1:
// https://github.com/nodeca/js-yaml/commit/665aadda42349dcae869f12040d9b10ef18d12da
// Copyright 2011-2015 by Vitaly Puzrin. All rights reserved. MIT license.
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
export class YAMLError extends Error {
  mark;
  constructor(message = "(unknown reason)", mark = ""){
    super(`${message} ${mark}`), this.mark = mark;
    this.name = this.constructor.name;
  }
  toString() {
    return `${this.name}: ${this.message} ${this.mark}`;
  }
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImh0dHBzOi8vanNyLmlvL0BzdGQveWFtbC8wLjIyNC4zL19lcnJvci50cyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBQb3J0ZWQgZnJvbSBqcy15YW1sIHYzLjEzLjE6XG4vLyBodHRwczovL2dpdGh1Yi5jb20vbm9kZWNhL2pzLXlhbWwvY29tbWl0LzY2NWFhZGRhNDIzNDlkY2FlODY5ZjEyMDQwZDliMTBlZjE4ZDEyZGFcbi8vIENvcHlyaWdodCAyMDExLTIwMTUgYnkgVml0YWx5IFB1enJpbi4gQWxsIHJpZ2h0cyByZXNlcnZlZC4gTUlUIGxpY2Vuc2UuXG4vLyBDb3B5cmlnaHQgMjAxOC0yMDI0IHRoZSBEZW5vIGF1dGhvcnMuIEFsbCByaWdodHMgcmVzZXJ2ZWQuIE1JVCBsaWNlbnNlLlxuXG5pbXBvcnQgdHlwZSB7IE1hcmsgfSBmcm9tIFwiLi9fbWFyay50c1wiO1xuXG5leHBvcnQgY2xhc3MgWUFNTEVycm9yIGV4dGVuZHMgRXJyb3Ige1xuICBjb25zdHJ1Y3RvcihcbiAgICBtZXNzYWdlID0gXCIodW5rbm93biByZWFzb24pXCIsXG4gICAgcHJvdGVjdGVkIG1hcms6IE1hcmsgfCBzdHJpbmcgPSBcIlwiLFxuICApIHtcbiAgICBzdXBlcihgJHttZXNzYWdlfSAke21hcmt9YCk7XG4gICAgdGhpcy5u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