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 SummaryConstructorsConstructorDescriptionParserException(String sql) ParserException(String sql, String message) ParserException(String sql, String message, SQLStateSubclass state) ParserException(String sql, String message, SQLStateSubclass state, Throwable cause) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal intcolumn()The one-based column number within the SQL string at which an exception was thrown, if applicable.final ParserExceptioncolumn(int c) Set thecolumn().final intline()The one-based line number within the SQL string at which an exception was thrown, if applicable.final ParserExceptionline(int l) Set theline().final intposition()The zero-based position within the SQL string at which an exception was thrown, if applicable.final ParserExceptionposition(int p) Set theposition().final Stringsql()The SQL string that caused the exception.Methods inherited from class org.jooq.exception.DataAccessExceptiongetCause, getStackTrace, sqlState, sqlStateClass, sqlStateClass, sqlStateClass, sqlStateClass, sqlStateSubclass, sqlStateSubclassMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
ParserException
- 
ParserException
- 
ParserException
- 
ParserException
 
- 
- 
Method Details- 
positionpublic final int position()The zero-based position within the SQL string at which an exception was thrown, if applicable.
- 
positionSet theposition().
- 
linepublic final int line()The one-based line number within the SQL string at which an exception was thrown, if applicable.
- 
lineSet theline().
- 
columnpublic final int column()The one-based column number within the SQL string at which an exception was thrown, if applicable.
- 
columnSet thecolumn().
- 
sqlThe SQL string that caused the exception.
 
-