Home Manual Reference Source

src/CodecError.js

import {ValueError} from '@failure-abstraction/error';

export class CodecError extends ValueError {
	constructor(encoding, reason, object, position) {
		super(reason);

		this.encoding = encoding;
		this.reason = reason.toString();
		this.object = object;
		this.position = position;
	}
}