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:
-
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 TypeMethodDescriptionfinal int
column()
The one-based column number within the SQL string at which an exception was thrown, if applicable.final ParserException
column
(int c) Set thecolumn()
.final int
line()
The one-based line number within the SQL string at which an exception was thrown, if applicable.final ParserException
line
(int l) Set theline()
.final int
position()
The zero-based position within the SQL string at which an exception was thrown, if applicable.final ParserException
position
(int p) Set theposition()
.final String
sql()
The SQL string that caused the exception.Methods inherited from class org.jooq.exception.DataAccessException
getCause, getStackTrace, sqlState, sqlStateClass, sqlStateClass, 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.
-