Java-Exceptions (try-catch, throws)

Ausnahme-Bedingungen, deren Behandlung woanders stattfindet (in Exception-Handler)
try {
 .. // geschützter Block
} catch (IOException e) {
 .. // Handler
}
Falls Exception nicht behandelt wird,
muß ihre Weitergabe deklariert werden:
void foo () 
   throws IOException 
{ .. // ungeschützter Block
}


Johannes Waldmann 2005-06-29