- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jooq.exception.DataAccessException
-
- org.jooq.impl.ParserException
-
- All Implemented Interfaces:
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(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcolumn()The one-based column number within the SQL string at which an exception was thrown, if applicable.ParserExceptioncolumn(int c)Set thecolumn().intline()The one-based line number within the SQL string at which an exception was thrown, if applicable.ParserExceptionline(int l)Set theline().intposition()The zero-based position within the SQL string at which an exception was thrown, if applicable.ParserExceptionposition(int p)Set theposition().Stringsql()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 Detail
-
ParserException
public ParserException(String sql)
-
ParserException
public ParserException(String sql, String message, SQLStateSubclass state)
-
ParserException
public ParserException(String sql, String message, SQLStateSubclass state, 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 String sql()
The SQL string that caused the exception.
-
-