Results 1 to 2 of 2
  1. #1
    new2java2009 is offline Member
    Join Date
    Aug 2009
    Posts
    60
    Rep Power
    0

    Default What does e.getMessage return?

    If the following exceptions are catched, what will throwable.getMessage return?

    thrown new ProgrammingException(e)
    thrown new ProgrammingException("Database read failed", e)

    Thanks!

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,574
    Rep Power
    12

    Default

    System.out.println() is your friend.

    Is ProgrammingException a well known class? If so it may document what getMessage() will return. Otherwise your aforementioned friend will be your only helpful one.

Similar Threads

  1. return myClass
    By aldo in forum New To Java
    Replies: 3
    Last Post: 12-21-2008, 07:22 PM
  2. Using int/int, 7/5 would return 1
    By zoe in forum New To Java
    Replies: 2
    Last Post: 12-02-2008, 12:25 PM
  3. about 'return'.
    By helloworld in forum New To Java
    Replies: 9
    Last Post: 11-28-2008, 05:08 AM
  4. if..else..return
    By mqdias in forum New To Java
    Replies: 1
    Last Post: 08-10-2007, 05:20 PM
  5. Return to try block
    By Freddie in forum New To Java
    Replies: 2
    Last Post: 05-11-2007, 09:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •