##// END OF EJS Templates
Added tag v1.4.6 for changeset 3969a8fb8049
Added tag v1.4.6 for changeset 3969a8fb8049

File last commit:

r172:3969a8fb8049 release v1.4.6 default
r173:3843ec3ca8f8 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";
}
}