can now annotate your exceptions with @DatabaseConstraint for mapping. See the custom exception factory .registerAll(BasePackage)