jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel F. Savarese" <...@savarese.org>
Subject Re: Should MalformedPatternException extend from RuntimeException?
Date Wed, 13 Sep 2006 22:25:27 GMT

In message <BA256842F04A9348A1D46EDDCC55BBA605773C0D@exch1-srv.cajval.sba.com.a
>Why MalformedPatternException doesn't extend from RuntimeException?

So that malformed dynamically generated regular expressions--such as
those entered by an application user or read from a file--that are passed
along to a pattern compiler--don't crash your application.  In such an
instance, a malformed expression is a non-fatal recoverable error.  If
you're using only hard-coded statically defined patterns, then this won't
be apparent immediately.  There is great disagreement about the utility
of checked exceptions, likely fueled by their profligate presence in the
Java core APIs.  I do not wish to rekindle that debate.

daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: oro-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-dev-help@jakarta.apache.org


Mime
View raw message