[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: IllegalArgumentException (WG last call on the Java API)
At 10:14 AM 3/26/01 -0700, Steve Sonntag wrote:
>One thing that is confusing to me is the following:
>
>When does a method throw LDAPException with PARAM_ERROR
> vs
>throwing IllegalArgumentException
>
>I realize that the method in the discussion below
>does not throw LDAPException but many others do.
>How does one determine which of the two exceptions is thrown?
I'd suggest doing away with PARAM_ERROR and always
using IllegalArgumentException... In fact, I suggest
doing away with all LDAPExceptions with API specific
result codes in favor of other Exceptions.
Kurt