throw : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

throw
To trigger an exception. What happens to handle the exception depends on enclosing try-catch blocks or failing that in the enclosing try-catch blocks in the calling method, or its caller etc.

For unchecked Exceptions ( i.e. Errors and RuntimeExceptions such as IllegalArgumentException) the throws IllegalArgumentException is optional. I find them useful documentation since they show up in the Javadoc.


This page is posted
on the web at:

http://mindprod.com/jgloss/throw.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\throw.html
logo
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.
no blog for this page
IP:[65.110.21.43]
Your face IP:[54.161.192.130]
You are visitor number