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

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

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

origin: com.h2database/h2

/**
 * Create a database exception for a specific error code.
 *
 * @param errorCode the error code
 * @param params the list of parameters of the message
 * @return the exception
 */
public static DbException get(int errorCode, String... params) {
  return new DbException(getJdbcSQLException(errorCode, null, params));
}
origin: com.h2database/h2

/**
 * Create a database exception for a specific error code.
 *
 * @param errorCode the error code
 * @param cause the cause of the exception
 * @param params the list of parameters of the message
 * @return the exception
 */
public static DbException get(int errorCode, Throwable cause,
    String... params) {
  return new DbException(getJdbcSQLException(errorCode, cause, params));
}
origin: com.h2database/h2

/**
 * Create a syntax error exception.
 *
 * @param sql the SQL statement
 * @param index the position of the error in the SQL statement
 * @param message the message
 * @return the exception
 */
public static DbException getSyntaxError(String sql, int index,
    String message) {
  sql = StringUtils.addAsterisk(sql, index);
  return new DbException(getJdbcSQLException(ErrorCode.SYNTAX_ERROR_2,
      null, sql, message));
}
origin: com.eventsourcing/h2

/**
 * Create a database exception for a specific error code.
 *
 * @param errorCode the error code
 * @param cause the cause of the exception
 * @param params the list of parameters of the message
 * @return the exception
 */
public static DbException get(int errorCode, Throwable cause,
    String... params) {
  return new DbException(getJdbcSQLException(errorCode, cause, params));
}
origin: org.wowtools/h2

/**
 * Create a database exception for a specific error code.
 *
 * @param errorCode the error code
 * @param params the list of parameters of the message
 * @return the exception
 */
public static DbException get(int errorCode, String... params) {
  return new DbException(getJdbcSQLException(errorCode, null, params));
}
origin: org.wowtools/h2

/**
 * Create a database exception for a specific error code.
 *
 * @param errorCode the error code
 * @param cause the cause of the exception
 * @param params the list of parameters of the message
 * @return the exception
 */
public static DbException get(int errorCode, Throwable cause,
    String... params) {
  return new DbException(getJdbcSQLException(errorCode, cause, params));
}
origin: com.eventsourcing/h2

/**
 * Create a database exception for a specific error code.
 *
 * @param errorCode the error code
 * @param params the list of parameters of the message
 * @return the exception
 */
public static DbException get(int errorCode, String... params) {
  return new DbException(getJdbcSQLException(errorCode, null, params));
}
origin: com.eventsourcing/h2

/**
 * Create a syntax error exception.
 *
 * @param sql the SQL statement
 * @param index the position of the error in the SQL statement
 * @param message the message
 * @return the exception
 */
public static DbException getSyntaxError(String sql, int index,
    String message) {
  sql = StringUtils.addAsterisk(sql, index);
  return new DbException(getJdbcSQLException(ErrorCode.SYNTAX_ERROR_2,
      null, sql, message));
}
origin: org.wowtools/h2

/**
 * Create a syntax error exception.
 *
 * @param sql the SQL statement
 * @param index the position of the error in the SQL statement
 * @param message the message
 * @return the exception
 */
public static DbException getSyntaxError(String sql, int index,
    String message) {
  sql = StringUtils.addAsterisk(sql, index);
  return new DbException(getJdbcSQLException(ErrorCode.SYNTAX_ERROR_2,
      null, sql, message));
}
org.h2.messageDbExceptiongetJdbcSQLException

Javadoc

Gets the SQL exception object for a specific error code.

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,
  • getMessage,
  • getSQLException,
  • getSource,
  • getSyntaxError,
  • printStackTrace,
  • setSource,
  • toSQLException

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Reference (javax.naming)
  • 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