java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.jooq.exception.DataAccessException
org.jooq.impl.ParserException
- All Implemented Interfaces:
Serializable
An exception that arises while parsing SQL through
DSLContext.parser()
.- Author:
- Lukas Eder
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionParserException(String sql)
ParserException(String sql, String message)
ParserException(String sql, String message, SQLStateSubclass state)
ParserException(String sql, String message, SQLStateSubclass state, Throwable cause)
-
Method Summary
Modifier and TypeMethodDescriptionint
column()
The one-based column number within the SQL string at which an exception was thrown, if applicable.column(int c)
Set thecolumn()
.int
line()
The one-based line number within the SQL string at which an exception was thrown, if applicable.line(int l)
Set theline()
.int
position()
The zero-based position within the SQL string at which an exception was thrown, if applicable.position(int p)
Set theposition()
.sql()
The SQL string that caused the exception.Methods inherited from class org.jooq.exception.DataAccessException
getCause, getStackTrace, sqlState, sqlStateClass, sqlStateSubclass
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParserException
-
ParserException
-
ParserException
-
ParserException
-
-
Method Details
-
position
public final int position()The zero-based position within the SQL string at which an exception was thrown, if applicable. -
position
Set theposition()
. -
line
public final int line()The one-based line number within the SQL string at which an exception was thrown, if applicable. -
line
Set theline()
. -
column
public final int column()The one-based column number within the SQL string at which an exception was thrown, if applicable. -
column
Set thecolumn()
. -
sql
The SQL string that caused the exception.
-