// now translate the H2 specific error codes into Rave's common application Exceptions
// add more error codes to the switch statement that should be specifically trapped
switch(rootException.getErrorCode()) {
case ErrorCode.DUPLICATE_KEY_1: {
e = new DuplicateItemException("DUPLICATE_ITEM", rootException);
break;
}
default: {
e = new TranslatedH2Exception(rootException.getErrorCode(), "ERROR", "Unknown Database Error");