method Task.prototype.throwOn Task.prototype.throwOn<E2 extends E>(guard: (error: E) => error is E2): Task<T, Exclude<E, E2>> Throws the specified error types if encountered, propagating them to the caller. Type Parameters E2 extends E Parameters guard: (error: E) => error is E2 Return Type Task<T, Exclude<E, E2>>