Fix importazione colli exchange
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user