java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.seasar.doma.DomaException
org.seasar.doma.jdbc.JdbcException
org.seasar.doma.jdbc.entity.EntityPropertyAccessException
- All Implemented Interfaces:
Serializable
Exception thrown when access to an entity property fails.
This exception is typically thrown when there is an error accessing a property of an entity, such as when reflection fails due to security restrictions or when a getter or setter method throws an exception.
- See Also:
-
Field Summary
Fields inherited from class org.seasar.doma.DomaException
args, messageResource -
Constructor Summary
ConstructorsConstructorDescriptionEntityPropertyAccessException(Throwable cause, String entityClassName, String entityPropertyName) Constructs a new exception with the specified cause, entity class name, and property name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the fully qualified name of the entity class.Returns the name of the property that could not be accessed.Methods inherited from class org.seasar.doma.jdbc.JdbcException
choiceSqlMethods inherited from class org.seasar.doma.DomaException
getArgs, getMessageResourceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EntityPropertyAccessException
public EntityPropertyAccessException(Throwable cause, String entityClassName, String entityPropertyName) Constructs a new exception with the specified cause, entity class name, and property name.- Parameters:
cause- the cause of this exceptionentityClassName- the fully qualified name of the entity classentityPropertyName- the name of the property that could not be accessed
-
-
Method Details
-
getEntityClassName
Returns the fully qualified name of the entity class.- Returns:
- the entity class name
-
getEntityPropertyName
Returns the name of the property that could not be accessed.- Returns:
- the entity property name
-