parjs
Version:
Library for building parsers using combinators.
16 lines • 664 B
TypeScript
import type { ParjsFailure } from "./internal";
/** A parent class for all errors thrown by Parjs. */
export declare abstract class ParjsError extends Error {
name: string;
}
/** An error that is thrown when it is assumed a parser will succeed, but it fails. */
export declare class ParjsParsingFailure extends ParjsError {
failure: ParjsFailure;
constructor(failure: ParjsFailure);
}
/** An error thrown to indicate that a parser has been constructed inappropriately. */
export declare class ParserDefinitionError extends ParjsError {
parserName: string;
constructor(parserName: string, message: string);
}
//# sourceMappingURL=errors.d.ts.map