Hi Gurkan!

I have a question about a construct I saw some times (e.g. in 
AbstracCommponent#create() ) and I frankly do not understand what it's good for:

        catch (Throwable e)
        {
            if (Exception.class.isAssignableFrom(e.getClass()))
            {
                throw new CreationException(e);
            }
        }

So all Errors (like e.g. ThreadDead) are silently catched away?
Is there any reason for this?

Why not simply do a:

        catch (Exception e)
        {
            throw new CreationException(e);
        }


Or did I miss something?

txs and LieGrue,
strub




Reply via email to