try {
Thread.sleep(sleep_time);
}
catch(InterruptedException e) {
// this part is executed when an exception (in this example InterruptedException) occurs
try {
Thread.sleep(sleep_time);
}
catch(InterruptedException e) {
// this part is executed when an exception (in this example InterruptedException) occurs