@gmod/cram
Version:
read CRAM files with pure Javascript
23 lines (17 loc) • 715 B
text/typescript
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 {
readonly code = 'CRAM_BUFFER_OVERRUN' as const
}