public final class TransportException extends DegreeDaysApiException
The Throwable.getCause() method will typically return an exception
that indicates the root cause of the issue. Do be prepared for it to be
null if you are inspecting it, but most likely it will be an
IOException of some sort. However it could be anything,
depending on the type and configuration of the RequestProcessor that
the exception originated from.
If an instance of this exception contains a message, please use it for debugging purposes only. The format and content of the string messages is undocumented and subject to change.
| Constructor and Description |
|---|
TransportException()
Constructs a new
TransportException with null
for its message and cause. |
TransportException(java.lang.String message)
Constructs a new
TransportException with the specified
message and null for the cause. |
TransportException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new
TransportException with the specified
message and cause. |
TransportException(java.lang.Throwable cause)
Constructs a new
TransportException with the specified cause
and a detail message of cause.toString() or
null if cause is null. |
public TransportException(java.lang.String message,
java.lang.Throwable cause)
TransportException with the specified
message and cause.message - a description of what went wrong.cause - the underlying exception that the
TransportException should wrap. This can be
null if there is no underlying exception.public TransportException(java.lang.String message)
TransportException with the specified
message and null for the cause.message - a description of what went wrong.public TransportException()
TransportException with null
for its message and cause.
Generally it would be better to use one of the other more descriptive constructors, to help the user to determine what exactly has gone wrong.
public TransportException(java.lang.Throwable cause)
TransportException with the specified cause
and a detail message of cause.toString() or
null if cause is null.cause - the underlying exception that the
TransportException should wrap. This can be
null if there is no underlying exception.
See www.degreedays.net/api/ for more about the Degree Days.net API.
You can sign up for a Degree Days.net API account and read the integration guide that is useful and applicable whether you are using Java or not.