jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pontus Amberg <pontus.amb...@gmail.com>
Subject Re: Oak error codes
Date Fri, 05 Apr 2013 14:30:41 GMT
As long as the code only is used internally or _always_ is accompanied with
a message it is ok. I work at some projects where we have no internet
connection and to encounter just an error code with no message is really
annoying! I know that working without internet access is pretty uncommon
these days but it does still occur.


On Fri, Apr 5, 2013 at 3:50 PM, Angela Schreiber <anchela@adobe.com> wrote:

> looks reasonable to me... that would also allow to write better
> commit hook tests that don't mix up the different type of failures
> and just pass by coincidence.
> angela
> On 4/5/13 1:27 PM, Jukka Zitting wrote:
>> Hi,
>> I'd like to introduce error codes for the CommitFailedExceptions
>> thrown by various commit hooks and other components.
>> Like the immediately recognizable (and nicely googleable) "ORA-NNNNN"
>> codes used by the Oracle database, each individual Oak error condition
>> should have it's own code in addition to a textual message that
>> describes the issue. Something like "OakTypeNNNN" where "Type"
>> indicates the error category (like "Constraint" for constraint and
>> "Access" for access violations) and "NNNN" is a numeric code for that
>> specific problem.
>> Such error coding should allow us to avoid the somewhat awkward
>> CommitFailedException.**throwRepositoryException() mechanism. And
>> documentation about common error scenarios could easily evolve in the
>> wiki with such error codes as page names.
>> BR,
>> Jukka Zitting

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message