Class NonRenderingWhereClauseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mybatis.dynamic.sql.exception.DynamicSqlException
org.mybatis.dynamic.sql.exception.NonRenderingWhereClauseException
- All Implemented Interfaces:
Serializable
This exception is thrown when the where clause in a statement will not render.
This can happen if all the optional conditions in a where clause fail to
render - for example, if an "in" condition specifies an empty list.
By default, the framework will throw this exception if a where clause fails to render. A where clause that fails to render can be very dangerous in that it could cause all rows in a table to be affected by a statement - for example, all rows could be deleted.
If you intend to allow a where clause to not render, then configure the statement to allow it, or change the global configuration.
- Since:
- 1.4.1
- Author:
- Jeff Butler
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NonRenderingWhereClauseException
public NonRenderingWhereClauseException()
-