[Minor] Don't double throw StrolchPolicyException if can't get policy
This commit is contained in:
parent
19765898d6
commit
c2ae2e88d1
|
@ -106,6 +106,8 @@ public class DefaultPolicyHandler extends StrolchComponent implements PolicyHand
|
|||
return constructor.newInstance(getContainer(), tx);
|
||||
|
||||
} catch (Exception e) {
|
||||
if (e instanceof StrolchPolicyException)
|
||||
throw (StrolchPolicyException) e;
|
||||
throw new StrolchPolicyException(
|
||||
MessageFormat.format("Failed to instantiate policy {0} due to {1}", policyDef, e.getMessage()), e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue