Class ProtocolException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    BadRequestException, BadResponseException

    public abstract class ProtocolException
    extends DbxException
    Something unexpected happened with either the request or the response. This can happen if there's a bug in the client code (including this library), if there's a bug in on the Dropbox server, or if Dropbox made a change to the API that changed the behavior of something and we haven't upgraded our SDK yet.

    Typically, these kinds of exceptions should be logged, so you can investigate later.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ProtocolException​(java.lang.String requestId, java.lang.String message)  
      ProtocolException​(java.lang.String requestId, java.lang.String message, java.lang.Throwable cause)  
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ProtocolException

        public ProtocolException​(java.lang.String requestId,
                                 java.lang.String message)
      • ProtocolException

        public ProtocolException​(java.lang.String requestId,
                                 java.lang.String message,
                                 java.lang.Throwable cause)