Class ConnectionCannotBeObtained

  • All Implemented Interfaces:
    java.io.Serializable

    public class ConnectionCannotBeObtained
    extends java.lang.Exception
    Exception thrown by the connectionmanager if a requested connection does not exist.
    Author:
    bfvdonge
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ConnectionCannotBeObtained

        public ConnectionCannotBeObtained​(java.lang.String reason,
                                          ConnectionCannotBeObtained ex)
        Constructor with message and cause
        Parameters:
        reason - The reason of throwing this exception
        ex - the cause of this exception
      • ConnectionCannotBeObtained

        public ConnectionCannotBeObtained​(java.lang.String reason,
                                          java.lang.Class<?> connectionType,
                                          java.lang.Object... objects)
        Constructor with reason, connection type and objects. The message is set to: "No known connection of type + connectionType + " between " + Arrays.toString(objects) + " [" + reason + "]";
        Parameters:
        reason - The reason of throwing this exception
        connectionType - The requested connection type
        objects - the objects on which a connection was requested