public class ConnectionException
extends java.lang.Exception
Constructor and Description |
---|
ConnectionException()
Construct a new exception without a detail message.
|
ConnectionException(int statusCode)
Construct a new exception without a detail message.
|
ConnectionException(java.lang.String message)
Constructs a new exception with the specified detail message
|
ConnectionException(java.lang.String message,
int statusCode)
Constructs a new exception with the specified detail message
|
ConnectionException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message and cause.
|
ConnectionException(java.lang.String message,
java.lang.Throwable cause,
int statusCode)
Constructs a new exception with the specified detail message and cause.
|
ConnectionException(java.lang.Throwable cause)
Constructs a new exception with the specified cause.
|
ConnectionException(java.lang.Throwable cause,
int statusCode)
Constructs a new exception with the specified cause.
|
Modifier and Type | Method and Description |
---|---|
int |
getStatusCode() |
public ConnectionException()
public ConnectionException(int statusCode)
connection
- status codepublic ConnectionException(java.lang.String message)
Note that the detail message associated with cause
is not
automatically incorporated in this exception's detail message.
message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).public ConnectionException(java.lang.String message, int statusCode)
Note that the detail message associated with cause
is not
automatically incorporated in this exception's detail message.
message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).connection
- status codepublic ConnectionException(java.lang.Throwable cause)
cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public ConnectionException(java.lang.Throwable cause, int statusCode)
cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)connection
- status codepublic ConnectionException(java.lang.String message, java.lang.Throwable cause)
Note that the detail message associated with cause
is not
automatically incorporated in this exception's detail message.
message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public ConnectionException(java.lang.String message, java.lang.Throwable cause, int statusCode)
Note that the detail message associated with cause
is not
automatically incorporated in this exception's detail message.
message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)connection
- status code<IBM Copyright © 2018 IBM Corp. All Rights Reserved.