Top Description Fields Constructors Methods
org.jooq.impl

public final Class ParserException

extends DataAccessException
Class Inheritance
Imports
org.jooq.DSLContext, org.jooq.exception.DataAccessException, .SQLStateSubclass

An exception that arises while parsing SQL through DSLContext#parser().
Author
Lukas Eder

Field Summary

Modifier and TypeField and Description
private int
private int
private int
private final String

Constructor Summary

AccessConstructor and Description
public
public
public
public

Method Summary

Modifier and TypeMethod and Description
public final int
column()

The one-based column number within the SQL string at which an exception was thrown, if applicable.

public final ParserException
column(int c)

Set the column().

public final int
line()

The one-based line number within the SQL string at which an exception was thrown, if applicable.

public final ParserException
line(int l)

Set the line().

public final int
position()

The zero-based position within the SQL string at which an exception was thrown, if applicable.

public final ParserException
position(int p)

Set the position().

public final String
sql()

The SQL string that caused the exception.

Inherited from org.jooq.exception.DataAccessException:
getCausegetStackTracesqlStatesqlStateClasssqlStateClasssqlStateClasssqlStateSubclass

Field Detail

columnback to summary
private int column
lineback to summary
private int line
positionback to summary
private int position
sqlback to summary
private final String sql

Constructor Detail

ParserExceptionback to summary
public ParserException(String sql)
ParserExceptionback to summary
public ParserException(String sql, String message)
ParserExceptionback to summary
public ParserException(String sql, String message, SQLStateSubclass state)
ParserExceptionback to summary
public ParserException(String sql, String message, SQLStateSubclass state, Throwable cause)

Method Detail

columnback to summary
public final int column()

The one-based column number within the SQL string at which an exception was thrown, if applicable.

columnback to summary
public final ParserException column(int c)

Set the column().

lineback to summary
public final int line()

The one-based line number within the SQL string at which an exception was thrown, if applicable.

lineback to summary
public final ParserException line(int l)

Set the line().

positionback to summary
public final int position()

The zero-based position within the SQL string at which an exception was thrown, if applicable.

positionback to summary
public final ParserException position(int p)

Set the position().

sqlback to summary
public final String sql()

The SQL string that caused the exception.