Skip to content

Commit 283de23

Browse files
committed
Avoid re-wrapping ExecutorException.
1 parent e336223 commit 283de23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/apache/ibatis/executor/loader/ResultLoaderMap.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2009-2015 the original author or authors.
2+
* Copyright 2009-2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -244,6 +244,8 @@ public Object run() throws Exception {
244244
} else {
245245
configurationObject = factoryMethod.invoke(null);
246246
}
247+
} catch (final ExecutorException ex) {
248+
throw ex;
247249
} catch (final NoSuchMethodException ex) {
248250
throw new ExecutorException("Cannot get Configuration as factory class ["
249251
+ this.configurationFactory + "] is missing factory method of name ["

0 commit comments

Comments
 (0)