Java   View all facts   Glossary   Help
syntactic unit > clause > throws clause
Next clauseimplements clause    Upclause

throws clause
subjectfact 
throws clausehas example
// A method definition with a throws 
public void open_file() throws IOException {
// Statements here that might generate an uncaught java.op.IOException
}
added by: JK, 2001-10-19 11:38:08.0
has purpose to specify the type(s) of exception(s) that might be generated when a method is runadded by: JK, 2001-10-19 11:38:08.0
has syntax
throws exceptionClassName
added by: JK, 2001-10-19 11:38:08.0
is part of method definitionadded by: JK, 2001-10-19 11:38:08.0
is a subtopic of Exception Handling2001-10-19 11:38:08.0
is a kind of clauseadded by: JK, 2001-10-19 11:38:08.0
see also throws statementadded by: JK, 2001-10-19 11:38:08.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0