public class ConnectionException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
@NotNull java.util.Properties |
properties
The properties used to connect to the database
Recommended to use getPropertiesRedacted() for logging/other outputs |
@NotNull java.lang.String |
url
The URL of the database connection
|
| Constructor and Description |
|---|
ConnectionException(@NotNull java.lang.String message,
@NotNull java.lang.String url,
@NotNull java.util.Properties properties)
Constructs a new connection exception with the given message, URL, and properties
|
ConnectionException(@NotNull java.lang.Throwable e,
@NotNull java.lang.String url,
@NotNull java.util.Properties properties)
Constructs a new connection exception with the given URL and properties
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull java.util.Properties |
getPropertiesRedacted()
Get the properties used to connect to the database, with the password redacted
|
@NotNull public final @NotNull java.lang.String url
@NotNull public final @NotNull java.util.Properties properties
getPropertiesRedacted() for logging/other outputspublic ConnectionException(@NotNull
@NotNull java.lang.Throwable e,
@NotNull
@NotNull java.lang.String url,
@NotNull
@NotNull java.util.Properties properties)
e - the exception that occurredurl - urlproperties - propertiespublic ConnectionException(@NotNull
@NotNull java.lang.String message,
@NotNull
@NotNull java.lang.String url,
@NotNull
@NotNull java.util.Properties properties)
message - the message to displayurl - urlproperties - properties