Package org.apache.derby.iapi.error

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


            if (cm != previousCM)
                cm.cleanupOnError(StandardException.closeException());
           
    } catch (Throwable t) {

      StandardException se;
      // ensure that the severity will shutdown the service
      if ((t instanceof StandardException) && (((StandardException) t).getSeverity() == ExceptionSeverity.DATABASE_SEVERITY))
        se = (StandardException) t;
      else
        se = Monitor.exceptionStartingModule(t);

      if (cm != previousCM) {
        cm.cleanupOnError(se);
      }

      if (ts != null) {
        ts.shutdown();
        synchronized (this) {
          services.removeElement(ts);
        }

        // Service root will only have been created if
        // ts is non-null.
        boolean deleteOnError = (properties !=null ?
                     properties.getProperty(Property.DELETE_ROOT_ON_ERROR) !=null:false);
        if (create || deleteOnError)
          provider.removeServiceRoot(serviceName);
      }


      Throwable nested = se.getCause();

      // never hide ThreadDeath
      if (nested instanceof ThreadDeath)
        throw (ThreadDeath) nested;
View Full Code Here


  public void cleanupOnError(Throwable t) {

    boolean doShutdown = false;
    if (t instanceof StandardException) {
      StandardException se = (StandardException) t;
      int severity = se.getSeverity();
      if (severity < ExceptionSeverity.SESSION_SEVERITY)
        return;
           
            popMe();
View Full Code Here

  private boolean reportError(Throwable t) {

    if (t instanceof StandardException) {

      StandardException se = (StandardException) t;

      switch (se.report()) {
      case StandardException.REPORT_DEFAULT:
        int level = se.getSeverity();
        return (level >= logSeverityLevel) ||
          (level == ExceptionSeverity.NO_APPLICABLE_SEVERITY);

      case StandardException.REPORT_NEVER:
        return false;
View Full Code Here

        ConstraintDescriptor conDesc = dd.getConstraintDescriptor(td,
                                                                      cd.getUUID());
        indexOrConstraintName = conDesc.getConstraintName();
      }   

      StandardException se =
        StandardException.newException(
        SQLState.LANG_DUPLICATE_KEY_CONSTRAINT, indexOrConstraintName, tableName);
      throw se;
    }
    if (SanityManager.DEBUG)
View Full Code Here

      if ((gc == preStmt.getActivationClass()) && preStmt.upToDate())
        return;
    }

    StandardException se = StandardException.newException(SQLState.LANG_STATEMENT_NEEDS_RECOMPILE);
    se.setReport(StandardException.REPORT_NEVER);
    throw se;
  }
View Full Code Here

  public void cleanupOnError(Throwable error)
  {
    if (error instanceof StandardException)
    {
      StandardException se = (StandardException)error;
       if (se.getSeverity() < ExceptionSeverity.SESSION_SEVERITY)
        return;
    }
    popMe();
  }
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

  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

    EmbedConnection conn = (EmbedConnection) connRef.get();

    if (error instanceof StandardException) {

      StandardException se = (StandardException) error;
      if (se.getSeverity() < ExceptionSeverity.SESSION_SEVERITY) {

        // any error in auto commit mode that does not close the
        // session will cause a rollback, thus remvoing the need
        // for any commit. We could check this flag under autoCommit
        // being true but the flag is ignored when autoCommit is false
View Full Code Here

    private static final char[] END_OF_STRING = {(char) 0};
   
    private void parseTimestamp( String timestampStr, boolean isJDBCEscape, LocaleFinder localeFinder, Calendar cal)
        throws StandardException
    {
        StandardException thrownSE = null;
        DateTimeParser parser = new DateTimeParser( timestampStr);
        try
        {
            int[] dateTimeNano = parseDateOrTimestamp( parser, true);
            encodedDate = dateTimeNano[0];
View Full Code Here

TOP

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

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.