Examples of StandardException


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

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

                                throw se;
                            }
View Full Code Here

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

            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

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

                // not many read I/O errors have been reported.
        if (io_retry_count > 4)
                {
          // page cannot be physically read
 
          StandardException se =
            StandardException.newException(
                   SQLState.FILE_READ_PAGE_EXCEPTION,
                   ioe, newIdentity, new Integer(pagesize));

           
View Full Code Here

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

    FileContainer myContainer =
            (FileContainer) containerCache.find(identity.getContainerId());

    if (myContainer == null)
    {
      StandardException nested =
        StandardException.newException(
          SQLState.DATA_CONTAINER_VANISHED,
          identity.getContainerId());
      throw dataFactory.markCorrupt(
        StandardException.newException(
View Full Code Here

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

      throw NO_MEM;
    }
    catch (Throwable t) {
            if (t instanceof StandardException)
            {
                StandardException se = (StandardException) t;
                if (se.getSeverity() < ExceptionSeverity.SESSION_SEVERITY)
                    se.setSeverity(ExceptionSeverity.SESSION_SEVERITY);
            }
      tr.cleanupOnError(t);
      throw handleException(t);
    } finally {
      restoreContextStack();
View Full Code Here

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

    {
        long   maxLength = Integer.MAX_VALUE;
        long   length = _clobValue.length();
        if ( length > Integer.MAX_VALUE )
        {
            StandardException se = StandardException.newException
                ( SQLState.BLOB_TOO_LARGE_FOR_CLIENT, Long.toString( length ), Long.toString( maxLength ) );

            throw new SQLException( se.getMessage() );
        }

        return (int) length;
    }
View Full Code Here

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

            // stop slave replication mode.
            return;
        }
       
        if (!inReplicationSlaveMode) {
            StandardException se = StandardException.
                newException(SQLState.REPLICATION_NOT_IN_SLAVE_MODE);
            throw PublicAPI.wrapStandardException(se);
        }

        // stop slave without using force, meaning that this method
View Full Code Here

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

     *
     * @exception SQLException Always thrown because BasicDatabase cannot
     * be in replication slave mode
     */
    public void stopReplicationSlave() throws SQLException {
        StandardException se = StandardException.
            newException(SQLState.REPLICATION_NOT_IN_SLAVE_MODE);
        throw PublicAPI.wrapStandardException(se);
    }
View Full Code Here

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

  Database getDatabase() {
    return  database;
  }

  StandardException shutdownDatabaseException() {
    StandardException se = StandardException.newException(SQLState.SHUTDOWN_DATABASE, getDBName());
    se.setReport(StandardException.REPORT_NEVER);
    return se;
  }
View Full Code Here

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

      }

      boolean checkForShutdown = false;
      if (thrownException instanceof StandardException)
      {
        StandardException se = (StandardException) thrownException;
        int severity = se.getSeverity();
        if (severity <= ExceptionSeverity.STATEMENT_SEVERITY)
        {
          /*
          ** If autocommit is on, then do a rollback
          ** to release locks if requested.  We did a stmt
          ** rollback in the cleanupOnError above, but we still
          ** may hold locks from the stmt.
          */
          if (autoCommit && rollbackOnAutoCommit)
          {
            se.setSeverity(ExceptionSeverity.TRANSACTION_SEVERITY);
          }
        } else if (SQLState.CONN_INTERRUPT.equals(se.getMessageId())) {
          // an interrupt closed the connection.
          checkForShutdown = true;
        }
      }
      // if cm is null, we don't have a connection context left,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.