Package org.jooq.impl
Class ParserException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jooq.exception.DataAccessException
-
- org.jooq.impl.ParserException
-
- All Implemented Interfaces:
java.io.Serializable
public final class ParserException extends DataAccessException
An exception that arises while parsing SQL throughDSLContext.parser()
.- Author:
- Lukas Eder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParserException(java.lang.String sql)
ParserException(java.lang.String sql, java.lang.String message)
ParserException(java.lang.String sql, java.lang.String message, SQLStateSubclass state)
ParserException(java.lang.String sql, java.lang.String message, SQLStateSubclass state, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
column()
The one-based column number within the SQL string at which an exception was thrown, if applicable.ParserException
column(int c)
Set thecolumn()
.int
line()
The one-based line number within the SQL string at which an exception was thrown, if applicable.ParserException
line(int l)
Set theline()
.int
position()
The zero-based position within the SQL string at which an exception was thrown, if applicable.ParserException
position(int p)
Set theposition()
.java.lang.String
sql()
The SQL string that caused the exception.-
Methods inherited from class org.jooq.exception.DataAccessException
getCause, getStackTrace, sqlState, sqlStateClass, sqlStateSubclass
-
-
-
-
Constructor Detail
-
ParserException
public ParserException(java.lang.String sql)
-
ParserException
public ParserException(java.lang.String sql, java.lang.String message)
-
ParserException
public ParserException(java.lang.String sql, java.lang.String message, SQLStateSubclass state)
-
ParserException
public ParserException(java.lang.String sql, java.lang.String message, SQLStateSubclass state, java.lang.Throwable cause)
-
-
Method Detail
-
position
public final int position()
The zero-based position within the SQL string at which an exception was thrown, if applicable.
-
position
public final ParserException position(int p)
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
public final ParserException line(int l)
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
public final ParserException column(int c)
Set thecolumn()
.
-
sql
public final java.lang.String sql()
The SQL string that caused the exception.
-
-