Add support for declaring 'throws' clauses.

Closes #12.