@stringsync/vexml
Version:
MusicXML to Vexflow
15 lines (14 loc) • 549 B
TypeScript
export type VexmlErrorCode = 'GENERIC_ERROR' | 'DOCUMENT_ERROR' | 'PARSE_ERROR';
/** A generic vexml error. */
export declare class VexmlError extends Error {
readonly code: VexmlErrorCode;
constructor(message: string, code?: VexmlErrorCode);
}
/** An error thrown when attempting to mutate the document. */
export declare class DocumentError extends VexmlError {
constructor(message: string);
}
/** An error thrown during the parsing process. */
export declare class ParseError extends VexmlError {
constructor(message: string);
}