java timeunit sleep shows unhandled exception type interruptedexception code example
Example: Unhandled exception: java.lang.InterruptedException
try {
Thread.sleep(1500);
} catch(InterruptedException e) {
System.out.println("got interrupted!");
}