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

    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)


  2. #2
    pbrockway2 is online now Moderator
    Join Date
    Feb 2009
    New Zealand
    Rep Power


    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