Class SchemaValidationTopiaException

All Implemented Interfaces:
Serializable

public class SchemaValidationTopiaException extends TopiaException
This exception is throwed when the database schema is not suitable for the current entities model. It means that a table or a column is missing
Since:
3.0
See Also:
  • Field Details

    • IS_STACK_TRACE_ELEMENT_ABOUT_SCHEMA_VALIDATION

      protected static final com.google.common.base.Predicate<StackTraceElement> IS_STACK_TRACE_ELEMENT_ABOUT_SCHEMA_VALIDATION
      We can know that an HibernateException is about schema validation if one of the stack trace element validate this predicate.
  • Constructor Details

    • SchemaValidationTopiaException

      public SchemaValidationTopiaException(String message, org.hibernate.HibernateException e)
  • Method Details

    • throwIfHibernateExceptionIsAboutSchemaValidation

      public static void throwIfHibernateExceptionIsAboutSchemaValidation(org.hibernate.HibernateException hibernateException)
      If given HibernateException is about schema validation, throw a SchemaValidationTopiaException.
      Parameters:
      hibernateException - the incoming exception to test and wrap if necessary