Tabnine Logo
DbException.getMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
getMessage
method
in
org.h2.message.DbException

Best Java code snippets using org.h2.message.DbException.getMessage (Showing top 13 results out of 315)

origin: com.h2database/h2

/**
 * Does exception indicate query recursion?
 */
private boolean isRecursiveQueryExceptionDetected(DbException exception) {
  if (exception == null) {
    return false;
  }
  if (exception.getErrorCode() != ErrorCode.TABLE_OR_VIEW_NOT_FOUND_1) {
    return false;
  }
  return exception.getMessage().contains("\"" + this.getName() + "\"");
}
origin: com.h2database/h2

private void throwLastBackgroundException() {
  if (backgroundException != null) {
    // we don't care too much about concurrency here,
    // we just want to make sure the exception is _normally_
    // not just logged to the .trace.db file
    DbException b = backgroundException;
    backgroundException = null;
    if (b != null) {
      // wrap the exception, so we see it was thrown here
      throw DbException.get(b.getErrorCode(), b, b.getMessage());
    }
  }
}
origin: com.h2database/h2

@Override
public Index getScanIndex(Session session, int[] masks,
    TableFilter[] filters, int filter, SortOrder sortOrder,
    HashSet<Column> allColumnsSet) {
  if (createException != null) {
    String msg = createException.getMessage();
    throw DbException.get(ErrorCode.VIEW_IS_INVALID_2,
        createException, getSQL(), msg);
  }
  PlanItem item = getBestPlanItem(session, masks, filters, filter, sortOrder, allColumnsSet);
  return item.getIndex();
}
origin: com.h2database/h2

} catch (DbException e) {
  execute("DROP TABLE " + newTable.getName(), true);
  throw DbException.get(ErrorCode.VIEW_IS_INVALID_2, e, getSQL(), e.getMessage());
origin: com.h2database/h2

} catch (DbException e) {
  if (e.getErrorCode() == ErrorCode.IO_EXCEPTION_2) {
    if (e.getMessage().contains("locked")) {
origin: com.eventsourcing/h2

private void throwLastBackgroundException() {
  if (backgroundException != null) {
    // we don't care too much about concurrency here,
    // we just want to make sure the exception is _normally_
    // not just logged to the .trace.db file
    DbException b = backgroundException;
    backgroundException = null;
    if (b != null) {
      // wrap the exception, so we see it was thrown here
      throw DbException.get(b.getErrorCode(), b, b.getMessage());
    }
  }
}
origin: org.wowtools/h2

private void throwLastBackgroundException() {
  if (backgroundException != null) {
    // we don't care too much about concurrency here,
    // we just want to make sure the exception is _normally_
    // not just logged to the .trace.db file
    DbException b = backgroundException;
    backgroundException = null;
    if (b != null) {
      // wrap the exception, so we see it was thrown here
      throw DbException.get(b.getErrorCode(), b, b.getMessage());
    }
  }
}
origin: org.wowtools/h2

@Override
public Index getScanIndex(Session session, int[] masks,
    TableFilter[] filters, int filter, SortOrder sortOrder,
    HashSet<Column> allColumnsSet) {
  if (createException != null) {
    String msg = createException.getMessage();
    throw DbException.get(ErrorCode.VIEW_IS_INVALID_2,
        createException, getSQL(), msg);
  }
  PlanItem item = getBestPlanItem(session, masks, filters, filter, sortOrder, allColumnsSet);
  return item.getIndex();
}
origin: com.eventsourcing/h2

@Override
public Index getScanIndex(Session session, int[] masks,
    TableFilter[] filters, int filter, SortOrder sortOrder,
    HashSet<Column> allColumnsSet) {
  if (createException != null) {
    String msg = createException.getMessage();
    throw DbException.get(ErrorCode.VIEW_IS_INVALID_2,
        createException, getSQL(), msg);
  }
  PlanItem item = getBestPlanItem(session, masks, filters, filter, sortOrder, allColumnsSet);
  return item.getIndex();
}
origin: org.wowtools/h2

} catch (DbException e) {
  execute("DROP TABLE " + newTable.getName(), true);
  throw DbException.get(ErrorCode.VIEW_IS_INVALID_2, e, getSQL(), e.getMessage());
origin: com.eventsourcing/h2

} catch (DbException e) {
  execute("DROP TABLE " + newTable.getName(), true);
  throw DbException.get(ErrorCode.VIEW_IS_INVALID_2, e, getSQL(), e.getMessage());
origin: org.wowtools/h2

} catch (DbException e) {
  if (e.getErrorCode() == ErrorCode.IO_EXCEPTION_2) {
    if (e.getMessage().contains("locked")) {
origin: com.eventsourcing/h2

} catch (DbException e) {
  if (e.getErrorCode() == ErrorCode.IO_EXCEPTION_2) {
    if (e.getMessage().contains("locked")) {
org.h2.messageDbExceptiongetMessage

Popular methods of DbException

  • getUnsupportedException
    Gets a SQL exception meaning this feature is not supported.
  • throwInternalError
    Throw an internal error. This method seems to return an exception object, so that it can be used ins
  • convert
    Convert a throwable to an SQL exception using the default mapping. All errors except the following a
  • get
    Create a database exception for a specific error code.
  • <init>
  • addSQL
    Set the SQL statement of the given exception. This method may create a new object.
  • convertIOException
    Convert an IO exception to a database exception.
  • convertInvocation
    Convert an InvocationTarget exception to a database exception.
  • convertToIOException
    Convert an exception to an IO exception.
  • getCause
  • getErrorCode
    Get the error code.
  • getInvalidValueException
    Gets a SQL exception meaning this value is invalid.
  • getErrorCode,
  • getInvalidValueException,
  • getJdbcSQLException,
  • getSQLException,
  • getSource,
  • getSyntaxError,
  • printStackTrace,
  • setSource,
  • toSQLException

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now