That's Java's exception handling. If a method is declared to throw an Exception then you must enclose it in a try..catch block and catch the Exception that can be thrown or one of it's superclasses:
Code:
try {
Thread.sleep(500);
}
catch (Exception e) {}
shmoove