Package org.apache.derby.iapi.error

Examples of org.apache.derby.iapi.error.StandardException


      sb.append('\n');

      attributes.clear();
    }

    StandardException se = StandardException.newException(SQLState.DEADLOCK, sb.toString(), victimXID);
    se.setReport(factory.deadlockMonitor);
    return se;
  }
View Full Code Here


        catch( StandardException se )
        {
            return se;
        }

        StandardException se = StandardException.newException( SQLState.LOCK_TIMEOUT_LOG, sb.toString() );
        se.setReport( StandardException.REPORT_ALWAYS );
        return se;
    }
View Full Code Here

                                throw Timeout.buildException(
                                    waitingLock, timeoutLockTable, currentTime);
                            }
                            else
                            {
                                StandardException se =
                                    StandardException.newException(
                                        SQLState.LOCK_TIMEOUT);

                                throw se;
                            }
View Full Code Here

    }
  }

  private void checkObserverException() throws StandardException {
    if (observerException != null) {
      StandardException se = observerException;
      observerException = null;
      throw se;
    }
  }
View Full Code Here

            {
                SanityManager.DEBUG_PRINT(debug_deadlock, debug_deadlock);
                SanityManager.DEBUG_CLEAR(debug_deadlock);

                // Simulate a deadlock error.
                StandardException se =
                    StandardException.newException(
                        SQLState.DEADLOCK, "fake deadlock", "fake victim");

        se.setReport(StandardException.REPORT_ALWAYS);
        throw se;
            }
        }

        return(latch_released);
View Full Code Here

  final SQLException closeOnTransactionError(Throwable thrownException) throws SQLException
  {
    SQLException sqle = handleException(thrownException);
    if (thrownException instanceof StandardException)
    {
      StandardException se = (StandardException) thrownException;
      int severity = se.getSeverity();
      if (severity == ExceptionSeverity.TRANSACTION_SEVERITY)
      {
        try {
          close();
          } catch (Throwable t) {
View Full Code Here

  private void dropAllDeclaredGlobalTempTables() throws StandardException {
    if (allDeclaredGlobalTempTables == null)
      return;
   
    DependencyManager dm = getDataDictionary().getDependencyManager();
    StandardException topLevelStandardException = null;

    //collect all the exceptions we might receive while dropping the temporary tables and throw them as one chained exception at the end.
    for (int i = 0; i < allDeclaredGlobalTempTables.size(); i++) {
      try {
        TempTableInfo tempTableInfo = (TempTableInfo)allDeclaredGlobalTempTables.get(i);
View Full Code Here

                                throw Timeout.buildException(
                                    waitingLock, timeoutLockTable, currentTime);
                            }
                            else
                            {
                                StandardException se =
                                    StandardException.newException(
                                        SQLState.LOCK_TIMEOUT);

                                throw se;
                            }
View Full Code Here

                                throw Timeout.buildException(
                                    waitingLock, timeoutLockTable, currentTime);
                            }
                            else
                            {
                                StandardException se =
                                    StandardException.newException(
                                        SQLState.LOCK_TIMEOUT);

                                throw se;
                            }
View Full Code Here

            if (exLockStatus == StorageFile.NO_FILE_LOCK_SUPPORT)
            {
                if (fileLockExisted && !throwDBlckException)
                {

                    StandardException multipleJBMSWarning =
                      StandardException.newException(
                          SQLState.DATA_MULTIPLE_JBMS_WARNING, args);

                    String warningMsg =
                      MessageService.getCompleteMessage(
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.error.StandardException

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.