/** * This module exports error classes used by the {@link SourceReader.SourceReader} module. * * @module SourceReader/Errors * @author Pablo E. --Fidel-- Martínez López, */ /** * The superclass for all {@link SourceReader} errors. * It also restores the prototype chain. * * @group Errors */ export declare class SourceReaderError extends Error { /** * The constructor for generic {@link SourceReader} errors. * * The messages are not supposed to be shown in an UI, as all errors * from this level are supposed to be catched and rethrown or handled * properly. * * @param message - A string message to show. */ constructor(message: string); } /** * The error to produce when a {@link SourceReader} is called with no input * (an empty object or array). * * @group Errors */ export declare class NoInputError extends SourceReaderError { /** * The constructor for {@link NoInputError} errors. */ constructor(); } /** * The error to produce when two positions related with different readers are * used to determine a portion of the contents. * * @group Errors */ export declare class MismatchedInputsError extends SourceReaderError { readonly operation: string; readonly context: string; /** * The constructor for * {@link MismatchedInputsError | MismatchedInputsError} errors. * * @param operation - A string indicating which function inform as the producer of the error. * @param context - A string indicating the context in which the function produce the error. */ constructor(operation: string, context: string); } /** * The error to produce when a function that is not supposed to be used at * an unknown position, but was called. * * @group Errors */ export declare class InvalidOperationAtUnknownPositionError extends SourceReaderError { readonly operation: string; readonly context: string; /** * The constructor for {@link SourceReader/Errors.InvalidOperationAtUnknownPositionError} errors. * * @param operation - A string indicating which function produced the error. * @param context - A string indicating the context in which the function produced the error. */ constructor(operation: string, context: string); } /** * The error to produce when a function that is not supposed to be used at EndOfInput is called. * * @group Errors */ export declare class InvalidOperationAtEOIError extends SourceReaderError { readonly operation: string; readonly context: string; /** * The constructor for {@link SourceReader/Errors.InvalidOperationAtEOIError} errors. * * @param operation - A string indicating which function produced the error. * @param context - A string indicating the context in which the function produced the error. */ constructor(operation: string, context: string); } /** * The error to produce when a function that is not supposed to be used at EndOfDocument is called. * * @group Errors */ export declare class InvalidOperationAtEODError extends SourceReaderError { readonly operation: string; readonly context: string; /** * The constructor for {@link InvalidOperationAtEODError} errors. * * @param operation - A string indicating which function produced the error. * @param context - A string indicating the context in which the function produced the error. */ constructor(operation: string, context: string); } //# sourceMappingURL=SourceReaderErrors.d.ts.map