Package org.jooq.exception
Class MockFileDatabaseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jooq.exception.DataAccessException
-
- org.jooq.exception.MockFileDatabaseException
-
- All Implemented Interfaces:
java.io.Serializable
public class MockFileDatabaseException extends DataAccessException
An unexpected result can be encountered while loading a file-basedMockDataProvider
.This exception may for instance indicate that the number of rows is not in accordance with the specified number of rows. I.e. it not be allowed for the file-based
MockDataProvider
to have this content:select "TABLE2"."ID2", "TABLE2"."NAME2" from "TABLE2" > +---+-----+ > |ID2|NAME2| > +---+-----+ > |1 |X | > |2 |Y | > +---+-----+ @ rows: 1000
- Author:
- Samy Deghou, Lukas Eder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MockFileDatabaseException(java.lang.String message)
Constructor for MockFileDatabaseException.MockFileDatabaseException(java.lang.String message, java.lang.Throwable cause)
Constructor for MockFileDatabaseException.
-
Method Summary
-
Methods inherited from class org.jooq.exception.DataAccessException
getCause, getStackTrace, sqlState, sqlStateClass, sqlStateSubclass
-
-
-
-
Constructor Detail
-
MockFileDatabaseException
public MockFileDatabaseException(java.lang.String message)
Constructor for MockFileDatabaseException.- Parameters:
message
- the detail message
-
MockFileDatabaseException
public MockFileDatabaseException(java.lang.String message, java.lang.Throwable cause)
Constructor for MockFileDatabaseException.- Parameters:
message
- the detail messagecause
- the root cause
-
-