 ```fs exception TestException of string let test = task { try () with :? TestException as e -> failwithf "An error occurred: %s" e.Message } ```