Package org.adbcj

Examples of org.adbcj.DbException


    }
  }

  public void finalizeClose() throws DbException {
    // TODO Make a DbSessionClosedException and use here
    errorPendingRequests(new DbException("Connection closed"));
    synchronized (lock) {
      if (closeRequest != null) {
        closeRequest.setResult(null);
      }
    }
View Full Code Here


   * @param errorResponseMessage  the message containing the exception
   */
  private void doError(AbstractConnection connection, ErrorResponseMessage errorResponseMessage) {
    // When receiving an error packet, throw exception and let exceptionCaught notify future
    String message = errorResponseMessage.getFields().get(ErrorField.MESSAGE);
    DbException exception;
    if (message == null) {
      exception = new PgException(connection, errorResponseMessage.getFields());
    } else {
      exception = new PgException(connection, message, errorResponseMessage.getFields());
    }
View Full Code Here

    case TRANSACTION:
      break;
    case IDLE:
      break;
    case ERROR:
      throw new DbException(connection, "Transaction is in error state");
    default:
      throw new IllegalStateException("Don't know hot to handle backend status of " + backendMessage.getStatus());
    }
  }
View Full Code Here

TOP

Related Classes of org.adbcj.DbException

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.