obscenity
Version:
Robust, extensible profanity filter.
17 lines (16 loc) • 507 B
TypeScript
/**
* Custom error thrown by the parser when syntactical errors are detected.
*/
export declare class ParserError extends Error {
readonly name = "ParserError";
/**
* The line on which the error occurred (one-based).
*/
readonly line: number;
/**
* The column on which the error occurred (one-based).
* Note that surrogate pairs are counted as 1 column wide, not 2.
*/
readonly column: number;
constructor(message: string, line: number, column: number);
}