Package io.tus.java.client
Class ProtocolException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- io.tus.java.client.ProtocolException
-
- All Implemented Interfaces:
java.io.Serializable
public class ProtocolException extends java.lang.Exception
This exception is thrown if the server sends a request with an unexpected status code or missing/invalid headers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProtocolException(java.lang.String message)
ProtocolException(java.lang.String message, java.net.HttpURLConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.HttpURLConnection
getCausingConnection()
boolean
shouldRetry()
-