Codota Logo
QueryExecutorImpl.receiveErrorResponse
Code IndexAdd Codota to your IDE (free)

How to use
receiveErrorResponse
method
in
org.postgresql.core.v3.QueryExecutorImpl

Best Java code snippets using org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse (Showing top 17 results out of 315)

  • Common ways to obtain QueryExecutorImpl
private void myMethod () {
QueryExecutorImpl q =
  • Codota IconProtocolConnectionImpl protocolConnectionImpl;PGStream pgStream;Properties info;Logger logger;new QueryExecutorImpl(protocolConnectionImpl, pgStream, info, logger)
  • Smart code suggestions by Codota
}
origin: org.postgresql/postgresql

SQLException error = receiveErrorResponse();
handler.handleError(error);
if (willHealViaReparse(error)) {
origin: postgresql/postgresql

public synchronized void processNotifies() throws SQLException {
  waitOnLock();
  // Asynchronous notifies only arrive when we are not in a transaction
  if (protoConnection.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE)
    return;
  try {
    while (pgStream.hasMessagePending()) {
      int c = pgStream.ReceiveChar();
      switch (c) {
      case 'A':  // Asynchronous Notify
        receiveAsyncNotify();
        break;
      case 'E':  // Error Response (response to pretty much everything; backend then skips until Sync)
        throw receiveErrorResponse();
        // break;
      case 'N':  // Notice Response (warnings / info)
        SQLWarning warning = receiveNoticeResponse();
        protoConnection.addWarning(warning);
        break;
      default:
        throw new PSQLException(GT.tr("Unknown Response Type {0}.", new Character((char) c)), PSQLState.CONNECTION_FAILURE);
      }
    }
  } catch (IOException ioe) {
    throw new PSQLException(GT.tr("An I/O error occured while sending to the backend."), PSQLState.CONNECTION_FAILURE, ioe);
  }
}

origin: org.postgresql/postgresql

throw receiveErrorResponse();
origin: org.postgresql/postgresql

error = receiveErrorResponse();
origin: postgresql/postgresql

SQLException newError = receiveErrorResponse();
if (error == null)
  error = newError;
origin: org.postgresql/postgresql

SQLException newError = receiveErrorResponse();
if (error == null) {
 error = newError;
origin: org.postgresql/postgresql

case 'E':
 throw receiveErrorResponse();
case 'N': // Notice Response (warnings / info)
 SQLWarning warning = receiveNoticeResponse();
origin: postgresql/postgresql

SQLException error = receiveErrorResponse();
handler.handleError(error);
origin: postgresql/postgresql

error = receiveErrorResponse();
origin: org.ancoron.postgresql/org.postgresql.osgi

public synchronized void processNotifies() throws SQLException {
  waitOnLock();
  // Asynchronous notifies only arrive when we are not in a transaction
  if (protoConnection.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE)
    return;
  try {
    while (pgStream.hasMessagePending()) {
      int c = pgStream.ReceiveChar();
      switch (c) {
      case 'A':  // Asynchronous Notify
        receiveAsyncNotify();
        break;
      case 'E':  // Error Response (response to pretty much everything; backend then skips until Sync)
        throw receiveErrorResponse();
        // break;
      case 'N':  // Notice Response (warnings / info)
        SQLWarning warning = receiveNoticeResponse();
        protoConnection.addWarning(warning);
        break;
      default:
        throw new PSQLException(GT.tr("Unknown Response Type {0}.", new Character((char) c)), PSQLState.CONNECTION_FAILURE);
      }
    }
  } catch (IOException ioe) {
    throw new PSQLException(GT.tr("An I/O error occured while sending to the backend."), PSQLState.CONNECTION_FAILURE, ioe);
  }
}

origin: org.ancoron.postgresql/org.postgresql

public synchronized void processNotifies() throws SQLException {
  waitOnLock();
  // Asynchronous notifies only arrive when we are not in a transaction
  if (protoConnection.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE)
    return;
  try {
    while (pgStream.hasMessagePending()) {
      int c = pgStream.ReceiveChar();
      switch (c) {
      case 'A':  // Asynchronous Notify
        receiveAsyncNotify();
        break;
      case 'E':  // Error Response (response to pretty much everything; backend then skips until Sync)
        throw receiveErrorResponse();
        // break;
      case 'N':  // Notice Response (warnings / info)
        SQLWarning warning = receiveNoticeResponse();
        protoConnection.addWarning(warning);
        break;
      default:
        throw new PSQLException(GT.tr("Unknown Response Type {0}.", new Character((char) c)), PSQLState.CONNECTION_FAILURE);
      }
    }
  } catch (IOException ioe) {
    throw new PSQLException(GT.tr("An I/O error occured while sending to the backend."), PSQLState.CONNECTION_FAILURE, ioe);
  }
}

origin: org.ancoron.postgresql/org.postgresql

SQLException newError = receiveErrorResponse();
if (error == null)
  error = newError;
origin: org.ancoron.postgresql/org.postgresql.osgi

SQLException newError = receiveErrorResponse();
if (error == null)
  error = newError;
origin: org.ancoron.postgresql/org.postgresql.osgi

SQLException error = receiveErrorResponse();
handler.handleError(error);
origin: org.ancoron.postgresql/org.postgresql

SQLException error = receiveErrorResponse();
handler.handleError(error);
origin: org.ancoron.postgresql/org.postgresql.osgi

error = receiveErrorResponse();
origin: org.ancoron.postgresql/org.postgresql

error = receiveErrorResponse();
org.postgresql.core.v3QueryExecutorImplreceiveErrorResponse

Popular methods of QueryExecutorImpl

  • <init>
  • cancelCopy
    Finishes a copy operation and unlocks connection discarding any exchanged data.
  • doSubprotocolBegin
  • endCopy
    Finishes writing to copy and unlocks connection.
  • flushCopy
  • hasLock
  • initCopy
    Locks connection and calls initializer for a new CopyOperation Called via startCopy -> processCopyRe
  • interpretCommandStatus
  • lock
    Obtain lock over this connection for given object, blocking to wait if necessary.
  • processCopyResults
    Handles copy sub protocol responses from server. Unlocks at end of sub protocol, so operations on pg
  • processDeadParsedQueries
  • processDeadPortals
  • processDeadParsedQueries,
  • processDeadPortals,
  • processResults,
  • readFromCopy,
  • receiveAsyncNotify,
  • receiveCommandStatus,
  • receiveFastpathResult,
  • receiveFields,
  • receiveNoticeResponse

Popular in Java

  • Updating database using SQL prepared statement
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Path (java.nio.file)
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now