Skip navigation links
oracle.javatools.db.sql
Class SQLQueryClauseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
oracle.javatools.db.DBException
oracle.javatools.db.sql.SQLQueryException
oracle.javatools.db.sql.SQLQueryClauseException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AliasInUseException, AmbiguousColumnException, InvalidAliasException
-
public class SQLQueryClauseException
- extends SQLQueryException
Exception thrown by a SQLQueryBuilder when there is an error with a clause in the query, but that this error doesn't stop the query being declarative. Example: missing a group by statement, an expression needs an alias, etc.
- Since:
- 11
- See Also:
- Serialized Form
Method Summary |
void |
addType(java.lang.String type)
Adds an extra object type for this exception to be concerning, other than the type for the object that was created. |
boolean |
isForType(java.lang.String type)
Queries whether this problem is relevant to the given type of clause. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SQLQueryClauseException
public SQLQueryClauseException(SQLFragment obj,
java.lang.String message)
addType
public void addType(java.lang.String type)
- Adds an extra object type for this exception to be concerning, other than the type for the object that was created.
-
- See Also:
isForType(String)
isForType
public boolean isForType(java.lang.String type)
- Queries whether this problem is relevant to the given type of clause. e.g.
SelectObject.TYPE
, GroupByObject.TYPE
etc.
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.