@@ -408,11 +408,12 @@ declare namespace $RefParser {
408
408
export type JSONParserErrorType = "EUNKNOWN" | "EPARSER" | "EUNMATCHEDPARSER" | "ERESOLVER" | "EUNMATCHEDRESOLVER" | "EMISSINGPOINTER" | "EINVALIDPOINTER" ;
409
409
410
410
export class JSONParserError extends Error {
411
+ constructor ( message : string , source : string ) ;
412
+
411
413
readonly name : string ;
412
414
readonly message : string ;
413
415
readonly source : string ;
414
416
readonly path : Array < string | number > ;
415
- readonly errors : string ;
416
417
readonly code : JSONParserErrorType ;
417
418
}
418
419
@@ -438,27 +439,39 @@ declare namespace $RefParser {
438
439
}
439
440
440
441
export class ParserError extends JSONParserError {
442
+ constructor ( message : string , source : string ) ;
443
+
441
444
readonly name = "ParserError" ;
442
445
readonly code = "EPARSER" ;
443
446
}
444
447
export class UnmatchedParserError extends JSONParserError {
448
+ constructor ( source : string ) ;
449
+
445
450
readonly name = "UnmatchedParserError" ;
446
451
readonly code = "EUNMATCHEDPARSER" ;
447
452
}
448
453
export class ResolverError extends JSONParserError {
454
+ constructor ( ex : Error | NodeJS . ErrnoException , source : string ) ;
455
+
449
456
readonly name = "ResolverError" ;
450
457
readonly code = "ERESOLVER" ;
451
458
readonly ioErrorCode ?: string ;
452
459
}
453
460
export class UnmatchedResolverError extends JSONParserError {
461
+ constructor ( source : string ) ;
462
+
454
463
readonly name = "UnmatchedResolverError" ;
455
464
readonly code = "EUNMATCHEDRESOLVER" ;
456
465
}
457
466
export class MissingPointerError extends JSONParserError {
467
+ constructor ( token : string | number , source : string ) ;
468
+
458
469
readonly name = "MissingPointerError" ;
459
470
readonly code = "EMISSINGPOINTER" ;
460
471
}
461
472
export class InvalidPointerError extends JSONParserError {
473
+ constructor ( pointer : string , source : string ) ;
474
+
462
475
readonly name = "InvalidPointerError" ;
463
476
readonly code = "EINVALIDPOINTER" ;
464
477
}
0 commit comments