Question: How do you make www.homepage.com/app/shoppingcart look like www.homepage.com/shoppingcart -

how to rewrite the URL-s 

is there a url rewrite plugin for cakephp that does such things

Answer: 
To quote the javadoc:

> 
> Throws InterruptedException - if another thread has interrupted the current thread.
> 
> 
> 

When your thread is not interrupted the two blocks of code are qequivalent, but you cannot know whether you will be interrupted or not, so to be sure your code is correct in both circumstances you should handle the `InterruptedException` (to either ignore or sleep again of not enough time has passed.)
In your first code example the `someFunction()` will be executed always, even if the `try` block raises an `exception`. In that case, the `exception` block will be executed first and then the `finally` block. If no `exception` is raised then the `finally` block will be executed after the execution of the `try` block.

In the second code example the `someFunction()` will not be executed if the `sleep()` method will fail. Then the `exception` block is executed and the lines of code after the `sleep()` method will be skipped.