Exception handling in case no block is found