Re: How to handle exceptions in constructor?



Thanks Thomas,


Thomas Fritsch wrote:
>George via JavaKB.com wrote:
>> Hello everyone,
>>
>[quoted text clipped - 9 lines]
>> instance of the object has not been created successfully, so that the invoker
>> can peform appropriate actions.
>I think so, too.
>> ... But I am not quite sure whether I am correct
>> since I have not seen any constructors which throw exceptions before.
>There are many, for example the constructors of java.io.FileInputStream,
>java.net.URL or java.rmi.server.UnicastObject .
>
>> Could anyone help?
>>

Your reply is very helpful.


regards,
George


--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-setup/200506/1
.