directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <>
Subject Re: Constructor throwing exception
Date Thu, 18 Feb 2016 14:05:16 GMT
Le 18/02/16 13:29, Lucas Theisen a écrit :
> For the first situation, I would convert it to a runtime exception, perhaps
> ProviderException (even though we are not an spi provider), or
> IllegalStateException, or even an Error, like AssertionError as this really
> is a precondition we are asserting.  This is an irrecoverable condition of
> the application itself, nothing the user could do about it.  That way if we
> break something we could get a useful error...

Plainly agree. This is what we already to for some of the SchemaLoader

View raw message