Update the try-catch test cases and sieve example.