Fix importazione colli exchange

This commit is contained in:
2024-12-19 15:41:36 +01:00
parent 76253a4d53
commit 3329067a1f
3 changed files with 28 additions and 24 deletions

View File

@@ -26,16 +26,16 @@ public class EntityException extends Exception {
this.mInnerException = innerException;
}
public EntityException(Exception e, EntityBase entity, String query) {
public EntityException(Exception innerException, EntityBase entity, String query) {
super("Impossibile salvare la entity " + entity.getTableName() + ".\n " +
e.getMessage() + "\n" +
innerException.getMessage() + "\n" +
query + "\n");
this.mEntityTableName = entity.getTableName();
this.mInnerException = e;
this.mInnerException = innerException;
if (e instanceof SQLException) {
sqlErrorCode = ((SQLException) e).getErrorCode();
if (innerException instanceof SQLException) {
sqlErrorCode = ((SQLException) innerException).getErrorCode();
}
}

View File

@@ -29,10 +29,10 @@ public class UtilityException {
if (entityException.getInnerException() instanceof RuntimeException) {
message += entityException.getInnerException().getCause().getMessage() + "\n";
isRuntimeException = true;
} else {
message += entityException.getMessage() + "\n";
}
message += "Impossibile salvare l'entity: " + entityException.getEntityTableName();
String startMatch = "it.integry.rules.Rule_";
String endMatch = "Eval";
if (entityException.getInnerException().getMessage().startsWith(startMatch)) {