classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Some object serialization problems for discussion(1)-ObjectOutputStr


From: Julian Scheid
Subject: RE: Some object serialization problems for discussion(1)-ObjectOutputStream
Date: Wed, 1 Aug 2001 04:01:43 +0100

>     try
>     {
>       ...
>     }
>     catch (IOException e)
>     {
> +      if(e instanceof NotSerializableException ){   <- Comment 2
> +       throw e;
> +      }
>        ...
>     }
> 

The following should be more elegant:

        try {
           ...
        }
        catch (NotSerializableException e) {
           throw e;
        }
        catch (IOException e) {
           ...
        }


Julian



reply via email to

[Prev in Thread] Current Thread [Next in Thread]