Package java.lang

Examples of java.lang.IllegalStateException


    /*
     * throw new IllegalStateException(
     * jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.jts.subordinate.invalidstate"));
     */

    throw new IllegalStateException();
  }
View Full Code Here


    /*
     * throw new IllegalStateException(
     * jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.jts.subordinate.invalidstate"));
     */

    throw new IllegalStateException();
  }
View Full Code Here

        throw new HeuristicRollbackException();
      case ActionStatus.H_HAZARD:
      case ActionStatus.H_MIXED:
        throw new HeuristicMixedException();
      case ActionStatus.INVALID:
        throw new IllegalStateException();
      default:     
        throw new HeuristicMixedException(); // not sure what happened,
      // so err on the safe side!
      }
    }
    catch (ClassCastException ex)
    {
      ex.printStackTrace();

      throw new IllegalStateException();
    }
    finally
    {
      TransactionImple.removeTransaction(this);
    }
View Full Code Here

    }
    catch (ClassCastException ex)
    {
      ex.printStackTrace();

      throw new IllegalStateException();
    }
    finally
    {
      TransactionImple.removeTransaction(this);
    }
View Full Code Here

      case ActionStatus.H_HAZARD:
      case ActionStatus.H_MIXED:
      default:
        throw new javax.transaction.HeuristicRollbackException();
      case ActionStatus.INVALID:
        throw new IllegalStateException();
      }
    }
    catch (ClassCastException ex)
    {
      ex.printStackTrace();

      throw new IllegalStateException();
    }
  }
View Full Code Here

    }
    catch (ClassCastException ex)
    {
      ex.printStackTrace();

      throw new IllegalStateException();
    }
  }
View Full Code Here

    /*
     * throw new IllegalStateException(
     * jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.jts.subordinate.invalidstate"));
     */

    throw new IllegalStateException();
  }
View Full Code Here

    /*
     * throw new IllegalStateException(
     * jtaLogger.logMesg.getString("com.arjuna.ats.internal.jta.transaction.jts.subordinate.invalidstate"));
     */

    throw new IllegalStateException();
  }
View Full Code Here

    }

    TransactionImple theTransaction = TransactionImple.getTransaction();

    if (theTransaction == null)
      throw new IllegalStateException(
          "BaseTransaction.commit - "
              + jtaLogger.logMesg
                  .getString("com.arjuna.ats.internal.jta.transaction.arjunacore.notx"));

    theTransaction.commitAndDisassociate();
View Full Code Here

    }

    TransactionImple theTransaction = TransactionImple.getTransaction();

    if (theTransaction == null)
      throw new IllegalStateException(
          "BaseTransaction.rollback - "
              + jtaLogger.logMesg
                  .getString("com.arjuna.ats.internal.jta.transaction.arjunacore.notx"));

    theTransaction.rollbackAndDisassociate();
View Full Code Here

TOP

Related Classes of java.lang.IllegalStateException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.