{"version":3,"sources":["../../src/errors/io-syntax-error.ts"],"sourcesContent":["import PositionRange from \"../core/positions\"\r\nimport InternetObjectError from \"./io-error\"\r\n\r\n\r\n/**\r\n * Represents the syntax error in InternetObject. When this error is thrwon,\r\n * it suggests that a syntax in the associated object is is not correct.\r\n */\r\nclass IOSyntaxError extends InternetObjectError {\r\n  /**\r\n   * Creates a new `IOSyntaxError` error.\r\n   * @param errorCode {string} An errorCode associated with is error\r\n   * @param message {string} The message which needs to be displayed\r\n   * @param node {Node} The node object, required while parsing raw internet-object data or schema\r\n   * @param ssf {Function} The start statck function, removes the irrelavant frames from the stack trace\r\n   *\r\n   * @internal\r\n   */\r\n  constructor(errorCode: string, fact?: string, posRange?: PositionRange, isEof: boolean = false, ssf?: any) {\r\n    super(errorCode, fact, posRange, isEof, ssf)\r\n    this.name = 'InternetObject(SyntaxError)'\r\n    this.updateMessage()\r\n  }\r\n}\r\n\r\nexport default IOSyntaxError\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAgC;AAOhC,MAAM,sBAAsB,gBAAAA,QAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAU9C,YAAY,WAAmB,MAAe,UAA0B,QAAiB,OAAO,KAAW;AACzG,UAAM,WAAW,MAAM,UAAU,OAAO,GAAG;AAC3C,SAAK,OAAO;AACZ,SAAK,cAAc;AAAA,EACrB;AACF;AAEA,IAAO,0BAAQ;","names":["InternetObjectError"]}