Class StreamingResponseCanceledException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.soklet.StreamingResponseCanceledException
- All Implemented Interfaces:
Serializable
Thrown when a response stream has been canceled.
- Author:
- Mark Allen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStreamingResponseCanceledException(@NonNull StreamTerminationReason cancelationReason) Creates an exception with the given cancelation reason.StreamingResponseCanceledException(@NonNull StreamTerminationReason cancelationReason, @Nullable Throwable cancelationCause) Creates an exception with the given cancelation reason and cause. -
Method Summary
Modifier and TypeMethodDescriptionThe underlying cancelation cause, if available.The cancelation reason.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StreamingResponseCanceledException
Creates an exception with the given cancelation reason.- Parameters:
cancelationReason- the cancelation reason
-
StreamingResponseCanceledException
public StreamingResponseCanceledException(@NonNull StreamTerminationReason cancelationReason, @Nullable Throwable cancelationCause) Creates an exception with the given cancelation reason and cause.- Parameters:
cancelationReason- the cancelation reasoncancelationCause- the underlying cause, ornullif unavailable
-
-
Method Details
-
getCancelationReason
The cancelation reason.- Returns:
- the cancelation reason
-
getCancelationCause
The underlying cancelation cause, if available.- Returns:
- the underlying cancelation cause
-