##// END OF EJS Templates
restructuring
restructuring

File last commit:

r172:3969a8fb8049 release v1.4.6 default
r175:fc69b40ceb98 tip default
Show More
CancelledError.ts
12 lines | 375 B | video/mp2t | TypeScriptLexer
/ src / main / ts / CancelledError.ts
import { Cancellation } from "./Cancellation";
import { ICancellation } from "./interfaces";
export class CancelledError extends Error {
readonly cancellationToken: ICancellation;
constructor(message = "The operation is cancelled", ct = Cancellation.none) {
super(message);
this.cancellationToken = ct;
this.name = "CancelledError";
}
}