Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #22687

Re: Exceptions

From Sven Köhler <remove-sven.koehler@gmail.com>
Newsgroups comp.lang.java.programmer
Subject Re: Exceptions
Date 2013-03-03 01:16 +0100
Message-ID <apfiurF8h8oU1@mid.dfncis.de> (permalink)
References <deaa58eb-e149-41fb-b428-479e837919bb@googlegroups.com>

Show all headers | View raw


Am 02.03.2013 20:08, schrieb subhabangalore@gmail.com:
> I am trying to learn now exceptions. I am looking for a list of
> common exceptions in Java and how one may debug them.

You should learn about checked and unchecked exception and the
difference between them. Consider the following examples:

FileNotFoundException (checked)
ArrayIndexOutOfBoundsException (unchecked)

If by debugging an exception you mean to find its cause? Well, each
exception has a stack trace and a message attached. That should tell you
what happened, and where it happened.

Not every exception needs debugging. A FileNotFoundException is
perfectly normal, if one tries to open a file that does not exist.


Regards,
  Sven

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Exceptions subhabangalore@gmail.com - 2013-03-02 11:08 -0800
  Re: Exceptions Martin Gregorie <martin@address-in-sig.invalid> - 2013-03-02 19:30 +0000
    Re: Exceptions Lew <lewbloch@gmail.com> - 2013-03-02 14:50 -0800
  Re: Exceptions Sven Köhler <remove-sven.koehler@gmail.com> - 2013-03-03 01:16 +0100
  Re: Exceptions Arne Vajhøj <arne@vajhoej.dk> - 2013-03-02 18:08 -0500
    Re: Exceptions subhabangalore@gmail.com - 2013-03-03 01:29 -0800
  Re: Exceptions Roedy Green <see_website@mindprod.com.invalid> - 2013-03-03 07:16 -0800
  Re: Exceptions Rajiv Gupta <rajiv@invalid.com> - 2013-03-04 11:41 +1100
    Re: Exceptions Roedy Green <see_website@mindprod.com.invalid> - 2013-03-04 10:16 -0800

csiph-web