mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-10334: Fix inadequate information for handling catch clauses (#2510)
* Add log stack traces * Change log stack traces Add original stack trace to the new throw and delete the error logs
This commit is contained in:
parent
ba61b512b2
commit
c1c587fffe
|
|
@ -258,13 +258,11 @@ public class ParamProcessWorker implements DispatchWorker {
|
|||
}
|
||||
|
||||
} catch (final IllegalArgumentException e) {
|
||||
s_logger.error("Error initializing command " + cmd.getCommandName() + ", field " + field.getName() + " is not accessible.");
|
||||
throw new CloudRuntimeException("Internal error initializing parameters for command " + cmd.getCommandName() + " [field " + field.getName() +
|
||||
" is not accessible]");
|
||||
" is not accessible]", e);
|
||||
} catch (final IllegalAccessException e) {
|
||||
s_logger.error("Error initializing command " + cmd.getCommandName() + ", field " + field.getName() + " is not accessible.");
|
||||
throw new CloudRuntimeException("Internal error initializing parameters for command " + cmd.getCommandName() + " [field " + field.getName() +
|
||||
" is not accessible]");
|
||||
" is not accessible]", e);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue