Class MissingPrimaryKeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dimstyl.orm.exceptions.MissingPrimaryKeyException
- All Implemented Interfaces:
Serializable
Exception thrown when an entity class does not have a primary key defined.
This exception is used to indicate that a class intended to be mapped to a database table
is missing a field annotated with @PrimaryKey
, which is required for proper ORM functionality.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMissingPrimaryKeyException
(String message) Constructs a newMissingPrimaryKeyException
with the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MissingPrimaryKeyException
Constructs a newMissingPrimaryKeyException
with the specified detail message.- Parameters:
message
- The detail message explaining the reason for the exception.
-