@assertive-ts/core
Version:
A type-safe fluent assertion library
13 lines (10 loc) • 306 B
text/typescript
/**
* Custom Error to describe an unsupported operation.
*/
export class UnsupportedOperationError extends Error {
public constructor(message?: string) {
super(`Unsupported operation. ${message}`);
this.name = this.constructor.name;
Error.captureStackTrace(this, this.constructor);
}
}