You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/01/23 16:21:06 UTC

[commons-pool] branch master updated: List all the sordid details of possible exceptions.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-pool.git


The following commit(s) were added to refs/heads/master by this push:
     new 57531bc  List all the sordid details of possible exceptions.
57531bc is described below

commit 57531bc3862eb0dd7d599446c4c14cf9fe542127
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jan 23 11:21:01 2022 -0500

    List all the sordid details of possible exceptions.
---
 .../apache/commons/pool2/impl/BaseGenericObjectPool.java   | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/main/java/org/apache/commons/pool2/impl/BaseGenericObjectPool.java b/src/main/java/org/apache/commons/pool2/impl/BaseGenericObjectPool.java
index 2cb5a71..77a4148 100644
--- a/src/main/java/org/apache/commons/pool2/impl/BaseGenericObjectPool.java
+++ b/src/main/java/org/apache/commons/pool2/impl/BaseGenericObjectPool.java
@@ -1327,6 +1327,20 @@ public abstract class BaseGenericObjectPool<T> extends BaseObject {
      *
      * @param className Eviction policy class name.
      * @param classLoader Load the class from this class loader.
+     * @throws LinkageError if the linkage fails
+     * @throws ExceptionInInitializerError if the initialization provoked by this method fails
+     * @throws ClassNotFoundException if the class cannot be located by the specified class loader
+     * @throws IllegalAccessException if this {@code Constructor} object is enforcing Java language access control and the underlying constructor is
+     *         inaccessible.
+     * @throws IllegalArgumentException if the number of actual and formal parameters differ; if an unwrapping conversion for primitive arguments fails; or if,
+     *         after possible unwrapping, a parameter value cannot be converted to the corresponding formal parameter type by a method invocation conversion; if
+     *         this constructor pertains to an enum type.
+     * @throws InstantiationException if the class that declares the underlying constructor represents an abstract class.
+     * @throws InvocationTargetException if the underlying constructor throws an exception.
+     * @throws ExceptionInInitializerError if the initialization provoked by this method fails.
+     * @throws NoSuchMethodException if a matching method is not found.
+     * @throws SecurityException If a security manage is present and the caller's class loader is not the same as or an ancestor of the class loader for the
+     *         current class and invocation of {@link SecurityManager#checkPackageAccess s.checkPackageAccess()} denies access to the package of this class.
      */
     @SuppressWarnings("unchecked")
     private void setEvictionPolicy(final String className, final ClassLoader classLoader)