518 |
else if (ex instanceof INV_OBJREF) |
else if (ex instanceof INV_OBJREF) |
519 |
{ |
{ |
520 |
rex = new NoSuchObjectException(message); |
rex = new NoSuchObjectException(message); |
521 |
rex.initCause(ex); |
rex.detail = ex; |
522 |
} |
} |
523 |
else if (ex instanceof NO_PERMISSION) |
else if (ex instanceof NO_PERMISSION) |
524 |
rex = new AccessException(message, ex); |
rex = new AccessException(message, ex); |
529 |
else if (ex instanceof OBJECT_NOT_EXIST) |
else if (ex instanceof OBJECT_NOT_EXIST) |
530 |
{ |
{ |
531 |
rex = new NoSuchObjectException(message); |
rex = new NoSuchObjectException(message); |
532 |
rex.initCause(ex); |
rex.detail = ex; |
533 |
} |
} |
534 |
else if (ex instanceof TRANSACTION_REQUIRED) |
else if (ex instanceof TRANSACTION_REQUIRED) |
535 |
{ |
{ |
536 |
rex = new TransactionRequiredException(message); |
rex = new TransactionRequiredException(message); |
537 |
rex.initCause(ex); |
rex.detail = ex; |
538 |
} |
} |
539 |
else if (ex instanceof TRANSACTION_ROLLEDBACK) |
else if (ex instanceof TRANSACTION_ROLLEDBACK) |
540 |
{ |
{ |
541 |
rex = new TransactionRolledbackException(message); |
rex = new TransactionRolledbackException(message); |
542 |
rex.initCause(ex); |
rex.detail = ex; |
543 |
} |
} |
544 |
else if (ex instanceof INVALID_TRANSACTION) |
else if (ex instanceof INVALID_TRANSACTION) |
545 |
{ |
{ |
546 |
rex = new InvalidTransactionException(message); |
rex = new InvalidTransactionException(message); |
547 |
rex.initCause(ex); |
rex.detail = ex; |
548 |
} |
} |
549 |
else if (ex instanceof UNKNOWN) |
else if (ex instanceof UNKNOWN) |
550 |
rex = wrapException(ex.getCause()); |
rex = wrapException(ex.getCause()); |