@gmod/cram
Version:
read CRAM files with pure Javascript
23 lines • 734 B
JavaScript
export class CramError extends Error {
}
/** Error caused by encountering a part of the CRAM spec that has not yet been implemented */
export class CramUnimplementedError extends Error {
}
/** An error caused by malformed data. */
export class CramMalformedError extends CramError {
}
/**
* An error caused by data being too big, exceeding a size limit.
*/
export class CramSizeLimitError extends CramError {
}
/**
* An invalid argument was supplied to a cram-js method or object.
*/
export class CramArgumentError extends CramError {
}
/** Read past the end of a block, indicating a truncated file. */
export class CramBufferOverrunError extends CramError {
code = 'CRAM_BUFFER_OVERRUN';
}
//# sourceMappingURL=errors.js.map