Topic
2 replies Latest Post - ‏2012-07-11T10:36:34Z by willey
SystemAdmin
SystemAdmin
210 Posts
ACCEPTED ANSWER

Pinned topic Using getmessage()

‏2011-04-18T19:26:30Z |
Hi all ...I'm a Java newbie ...
My question involves the use of the getmessage() functionality when handling an IOException.

Now there are several IOException "types" ... e.g. EOF (EndOfFile), File Not Found etc ...
While I'm reading a file (using the java.nio.* class)
and I encounter some sort of I/O error

will (IOException e) produce a specific IO error exception message
when I invoke ( e.getmessage() )

Thanks much

Best Regards

Guy Rich
Updated on 2012-07-11T10:36:34Z at 2012-07-11T10:36:34Z by willey
  • seohulu
    seohulu
    3 Posts
    ACCEPTED ANSWER

    Re: Using getmessage()

    ‏2011-09-28T21:45:54Z  in response to SystemAdmin
    Depends on which specific subclass of IOException which has been caught by you, if it IS a specific subclass of IOException (ChangedCharSetException, CharacterCodingException...), then it will give out a specific error msg.

    if it is just a general IOException, then it will not.

    you can use e.printStackTrace() to find out exactly which line caused the exception.

    Acoolme is an Online Marketing Software Platform And Social Community
  • willey
    willey
    4 Posts
    ACCEPTED ANSWER

    Re: Using getmessage()

    ‏2012-07-11T10:36:34Z  in response to SystemAdmin
    I am new to Java, with my knowledge getmessage works have some exceptions

    Making your web access secure using SSL Certificate is a right choice and Choosing the right Certificate Authority for SSL Certificate is tough one ,here it is Comodo is the only Certificate authority which gives full support from initializing till installing your SSL Certificate.