UNPKG

@gandlaf21/bc-ur

Version:

A JS implementation of the Uniform Resources (UR) specification from Blockchain Commons

36 lines (30 loc) 735 B
export class InvalidSchemeError extends Error { constructor() { super('Invalid Scheme'); this.name = 'InvalidSchemeError' } } export class InvalidPathLengthError extends Error { constructor() { super('Invalid Path'); this.name = 'InvalidPathLengthError' } } export class InvalidTypeError extends Error { constructor() { super('Invalid Type'); this.name = 'InvalidTypeError' } } export class InvalidSequenceComponentError extends Error { constructor() { super('Invalid Sequence Component'); this.name = 'InvalidSequenceComponentError' } } export class InvalidChecksumError extends Error { constructor() { super('Invalid Checksum'); this.name = 'InvalidChecksumError' } }