Class ConnectionInitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
fr.codinbox.connector.commons.exception.ConnectionInitException
- All Implemented Interfaces:
Serializable
Exception thrown when a connector connection fails to initialize.
This exception is used consistently across all connector types (Redis, Database, RabbitMQ, Kafka) to signal initialization failures. When a connection is configured with exit-on-failure enabled, this exception causes the server to shut down.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConnectionInitException(String message) Creates a new exception with the specified detail message.ConnectionInitException(Throwable cause) Creates a new exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConnectionInitException
Creates a new exception with the specified detail message.- Parameters:
message- the detail message describing the initialization failure
-
ConnectionInitException
Creates a new exception with the specified cause.- Parameters:
cause- the underlying cause of the initialization failure
-