jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Oak error codes
Date Fri, 05 Apr 2013 11:27:39 GMT

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.


Jukka Zitting

View raw message