Class ConnectionRefusalException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- org.jenkinsci.remoting.protocol.impl.ConnectionRefusalException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PermanentConnectionRefusalException
public class ConnectionRefusalException extends IOException
An exception to flag that the connection has been refused.- Since:
- 3.0
- See Also:
for a permanent rejection of the connection.
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectionRefusalException()
ConnectionRefusalException(String message)
ConnectionRefusalException(String message, Object... args)
Constructs anConnectionRefusalException
with the specified detail message formatted usingString.format(String, Object...)
.ConnectionRefusalException(String message, Throwable cause)
ConnectionRefusalException(Throwable cause)
ConnectionRefusalException(Throwable cause, String message, Object... args)
Constructs anConnectionRefusalException
with the specified detail message formatted usingString.format(String, Object...)
.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConnectionRefusalException
public ConnectionRefusalException()
-
ConnectionRefusalException
public ConnectionRefusalException(String message)
-
ConnectionRefusalException
public ConnectionRefusalException(String message, Object... args)
Constructs anConnectionRefusalException
with the specified detail message formatted usingString.format(String, Object...)
.- Parameters:
message
- The detail message format string.args
- Arguments referenced by the format specifiers in the format string.- Throws:
IllegalFormatException
- If a format string contains an illegal syntax, a format specifier that is incompatible with the given arguments, insufficient arguments given the format string, or other illegal conditions.
-
ConnectionRefusalException
public ConnectionRefusalException(Throwable cause, String message, Object... args)
Constructs anConnectionRefusalException
with the specified detail message formatted usingString.format(String, Object...)
.- Parameters:
cause
- The cause (which is saved for later retrieval by theThrowable.getCause()
method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)message
- The detail message format string.args
- Arguments referenced by the format specifiers in the format string.- Throws:
IllegalFormatException
- If a format string contains an illegal syntax, a format specifier that is incompatible with the given arguments, insufficient arguments given the format string, or other illegal conditions.
-
ConnectionRefusalException
public ConnectionRefusalException(Throwable cause)
-
-