Class DbxApiException

    • Constructor Summary

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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.lang.String buildMessage​(java.lang.String routeName, LocalizedText userMessage)  
      protected static java.lang.String buildMessage​(java.lang.String routeName, LocalizedText userMessage, java.lang.Object errorValue)  
      LocalizedText getUserMessage()
      Returns a human-readable message that can be displayed to the end user.
      • 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

      • DbxApiException

        public DbxApiException​(java.lang.String requestId,
                               LocalizedText userMessage,
                               java.lang.String message)
      • DbxApiException

        public DbxApiException​(java.lang.String requestId,
                               LocalizedText userMessage,
                               java.lang.String message,
                               java.lang.Throwable cause)
    • Method Detail

      • getUserMessage

        public LocalizedText getUserMessage()
        Returns a human-readable message that can be displayed to the end user.

        If no such message is available, then this method returns null.

        Returns:
        human-readable message to display to end user, or null if unavailable
      • buildMessage

        protected static java.lang.String buildMessage​(java.lang.String routeName,
                                                       LocalizedText userMessage)
      • buildMessage

        protected static java.lang.String buildMessage​(java.lang.String routeName,
                                                       LocalizedText userMessage,
                                                       java.lang.Object errorValue)