{"version":3,"sources":["../../src/errors/io-validation-error.ts"],"sourcesContent":["import PositionRange from \"../core/positions\"\r\nimport InternetObjectError  from \"./io-error\"\r\n\r\n/**\r\n * Represents the validation error in InternetObject. This error is thrown when a validation\r\n * issue is found while validating the internet-object data against the associated schema.\r\n */\r\nclass IOValidationError extends InternetObjectError {\r\n  /**\r\n   * Creates a new `IOValidationError` error.\r\n   *\r\n   * @param errorCode {string} An error-code associated with this error\r\n   * @param fact {string} The  reason for the error\r\n   * @param pos {Position} The position object, for tracking line and columns. Optional\r\n   * @param isEof {boolean} Indicates whether the error is caused by EOF. Optional\r\n   * @param ssf {Function} The start statck function, removes the irrelavant frames from the stack trace\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(ValidationError)'\r\n    this.updateMessage()\r\n  }\r\n}\r\n\r\nexport default IOValidationError\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,sBAAiC;AAMjC,MAAM,0BAA0B,gBAAAA,QAAoB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWlD,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,8BAAQ;","names":["InternetObjectError"]}