[Minor] Removed use of e.printStackTrace();
This commit is contained in:
parent
7b6e881b21
commit
c20938505a
|
@ -7,6 +7,8 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
|
||||
import li.strolch.soql.core.SOQLEvaluationException;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* extract state field value by reflection
|
||||
|
@ -15,6 +17,8 @@ import li.strolch.soql.core.SOQLEvaluationException;
|
|||
*/
|
||||
public class MethodExpression extends AbstractObjectExpression {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(MethodExpression.class);
|
||||
|
||||
private Object object;
|
||||
private String methodName;
|
||||
private MethodArgumentDeclaration methodArguments;
|
||||
|
@ -57,7 +61,7 @@ public class MethodExpression extends AbstractObjectExpression {
|
|||
try {
|
||||
result = method.invoke(object, arguments.toArray());
|
||||
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException e) {
|
||||
e.printStackTrace();
|
||||
logger.error("Failed to call method " + this.methodName + " on class " + object.getClass().getName(), e);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue