javax.transaction

Class SystemException

Implemented Interfaces:
Serializable

public class SystemException
extends Exception

A generic transaction exception.
See Also:
Serialized Form

Field Summary

int
errorCode

Constructor Summary

SystemException()
SystemException(int errorCode)
SystemException(String msg)
SystemException(String msg, Throwable rootCause)
SystemException(Throwable rootCause)

Method Summary

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

errorCode

public int errorCode

Constructor Details

SystemException

public SystemException()
Usages and Demos :

View More Examples of SystemException()
   1:             } catch (ResourceException e) {
   2:                 throw (SystemException)new SystemException().initCause(e);
   3:             }
   4:         }
   5:     }

View Full Code Here
   1:                 {
   2:                     throw new javax.transaction.SystemException();
   3:                 }
   4:             }
   5:             else

View Full Code Here
   1:         } else if (firstThrowable != null) {
   2:             throw (SystemException) new SystemException().initCause(firstThrowable);
   3:         }
   4:     }

View Full Code Here
   1:             
   2:             throw new javax.transaction.SystemException();
   3:         }
   4:         ...
   5:             
   6:             throw new javax.transaction.SystemException();
   7:         }
   8:         ...
   9:             
  10:             throw new javax.transaction.SystemException();
  11:         }

View Full Code Here
   1:             _logger.log(Level.SEVERE,"enterprise_distributedtx.excep_in_utx_commit", ex);
   2:             throw new SystemException();
   3:         } finally {
   4:         ...
   5:             _logger.log(Level.SEVERE,"enterprise_distributedtx.excep_in_utx_rollback", ex);
   6:             throw new SystemException();
   7:         } finally {
   8:             inv.setTransaction(null);
   9:         }

View Full Code Here

SystemException

public SystemException(int errorCode)
Usages and Demos :

View More Examples of SystemException(int errorCode)
   1:     public SystemException newSystemException(String str) {
   2:         return new SystemException(str);
   3:     }
   4: 
   5:     public SystemException newSystemException(Exception ex) {

View Full Code Here
   1:         {
   2:             throw new javax.transaction.SystemException(e.toString());
   3:         }
   4:     }

View Full Code Here
   1:         } else {
   2:             throw (SystemException) new SystemException(message).initCause(throwable);
   3:         }
   4:     }

View Full Code Here
   1:           }
   2:           catch(Exception ex) { throw new javax.transaction.SystemException(ex.getMessage()); }            
   3:       
   4:         }  
   5:         

View Full Code Here
   1:                    ComponentInvocation.APP_CLIENT_INVOCATION) {
   2:             throw new SystemException(sm.getString("enterprise_distributedtx.usertransaction_not_supported"));
   3:         }
   4:         ...
   5:             _logger.log(Level.SEVERE,"enterprise_distributedtx.excep_in_utx_begin", ex);
   6:             SystemException sysEx = new SystemException(ex.getMessage());
   7:             sysEx.initCause(ex);
   8:             throw sysEx;
   9:         }

View Full Code Here

SystemException

public SystemException(String msg)
Usages and Demos :

View More Examples of SystemException(String msg)
   1:     public SystemException newSystemException(String str) {
   2:         return new SystemException(str);
   3:     }
   4: 
   5:     public SystemException newSystemException(Exception ex) {

View Full Code Here
   1:         {
   2:             throw new javax.transaction.SystemException(e.toString());
   3:         }
   4:     }

View Full Code Here
   1:         } else {
   2:             throw (SystemException) new SystemException(message).initCause(throwable);
   3:         }
   4:     }

View Full Code Here
   1:           }
   2:           catch(Exception ex) { throw new javax.transaction.SystemException(ex.getMessage()); }            
   3:       
   4:         }  
   5:         

View Full Code Here
   1:                    ComponentInvocation.APP_CLIENT_INVOCATION) {
   2:             throw new SystemException(sm.getString("enterprise_distributedtx.usertransaction_not_supported"));
   3:         }
   4:         ...
   5:             _logger.log(Level.SEVERE,"enterprise_distributedtx.excep_in_utx_begin", ex);
   6:             SystemException sysEx = new SystemException(ex.getMessage());
   7:             sysEx.initCause(ex);
   8:             throw sysEx;
   9:         }

View Full Code Here

SystemException

public SystemException(String msg,
                       Throwable rootCause)

SystemException

public SystemException(Throwable rootCause)
Usages and Demos :

View More Examples of SystemException(Throwable rootCause)
   1:     public SystemException newSystemException(String str) {
   2:         return new SystemException(str);
   3:     }
   4: 
   5:     public SystemException newSystemException(Exception ex) {

View Full Code Here
   1:         {
   2:             throw new javax.transaction.SystemException(e.toString());
   3:         }
   4:     }

View Full Code Here
   1:         } else {
   2:             throw (SystemException) new SystemException(message).initCause(throwable);
   3:         }
   4:     }

View Full Code Here
   1:           }
   2:           catch(Exception ex) { throw new javax.transaction.SystemException(ex.getMessage()); }            
   3:       
   4:         }  
   5:         

View Full Code Here
   1:                    ComponentInvocation.APP_CLIENT_INVOCATION) {
   2:             throw new SystemException(sm.getString("enterprise_distributedtx.usertransaction_not_supported"));
   3:         }
   4:         ...
   5:             _logger.log(Level.SEVERE,"enterprise_distributedtx.excep_in_utx_begin", ex);
   6:             SystemException sysEx = new SystemException(ex.getMessage());
   7:             sysEx.initCause(ex);
   8:             throw sysEx;
   9:         }

View Full Code Here