Package com.dropbox.core
Class DbxApiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.dropbox.core.DbxException
com.dropbox.core.DbxApiException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AccountPhotoGetErrorException,AddFileMemberErrorException,AddFolderMemberErrorException,AddPropertiesErrorException,AddSecondaryEmailsErrorException,AddTagErrorException,AlphaGetMetadataErrorException,BaseTagErrorException,CountFileRequestsErrorException,CreateFileRequestErrorException,CreateFolderErrorException,CreateSharedLinkErrorException,CreateSharedLinkWithSettingsErrorException,CustomQuotaErrorException,DateRangeErrorException,DeleteAllClosedFileRequestsErrorException,DeleteErrorException,DeleteFileRequestErrorException,DeleteManualContactsErrorException,DeleteProfilePhotoErrorException,DocLookupErrorException,DownloadErrorException,DownloadZipErrorException,EchoErrorException,ExcludedUsersListContinueErrorException,ExcludedUsersListErrorException,ExcludedUsersUpdateErrorException,ExportErrorException,FeaturesGetValuesBatchErrorException,FileMemberActionErrorException,GetAccountBatchErrorException,GetAccountErrorException,GetCopyReferenceErrorException,GetFileMetadataErrorException,GetFileRequestErrorException,GetMetadataErrorException,GetSharedLinkFileErrorException,GetSharedLinksErrorException,GetTeamEventsContinueErrorException,GetTeamEventsErrorException,GetTemporaryLinkErrorException,GetThumbnailBatchErrorException,GroupCreateErrorException,GroupDeleteErrorException,GroupMembersAddErrorException,GroupMemberSetAccessTypeErrorException,GroupMembersRemoveErrorException,GroupSelectorErrorException,GroupsGetInfoErrorException,GroupsListContinueErrorException,GroupsMembersListContinueErrorException,GroupsPollErrorException,GroupUpdateErrorException,InvalidPropertyGroupErrorException,LegalHoldsGetPolicyErrorException,LegalHoldsListHeldRevisionsErrorException,LegalHoldsListPoliciesErrorException,LegalHoldsPolicyCreateErrorException,LegalHoldsPolicyReleaseErrorException,LegalHoldsPolicyUpdateErrorException,ListDocsCursorErrorException,ListFileMembersContinueErrorException,ListFileMembersErrorException,ListFileRequestsContinueErrorException,ListFileRequestsErrorException,ListFilesContinueErrorException,ListFolderContinueErrorException,ListFolderErrorException,ListFolderLongpollErrorException,ListFolderMembersContinueErrorException,ListFoldersContinueErrorException,ListMemberAppsErrorException,ListMemberDevicesErrorException,ListMembersAppsErrorException,ListMembersDevicesErrorException,ListRevisionsErrorException,ListSharedLinksErrorException,ListTeamAppsErrorException,ListTeamDevicesErrorException,ListUsersCursorErrorException,LockFileErrorException,MembersDeleteFormerMemberFilesErrorException,MembersDeleteProfilePhotoErrorException,MembersGetInfoErrorException,MembersListContinueErrorException,MembersListErrorException,MembersRecoverErrorException,MembersRemoveErrorException,MembersSendWelcomeErrorException,MembersSetPermissions2ErrorException,MembersSetPermissionsErrorException,MembersSetProfileErrorException,MembersSetProfilePhotoErrorException,MembersSuspendErrorException,MembersTransferFormerMembersFilesErrorException,MembersUnsuspendErrorException,ModifySharedLinkSettingsErrorException,ModifyTemplateErrorException,MountFolderErrorException,PaperCreateErrorException,PaperDocCreateErrorException,PaperDocUpdateErrorException,PaperFolderCreateErrorException,PaperUpdateErrorException,PollErrorException,PreviewErrorException,PropertiesSearchContinueErrorException,PropertiesSearchErrorException,RelinquishAccessErrorException,RelinquishFileMembershipErrorException,RelinquishFolderMembershipErrorException,RelocationErrorException,RemoveFileMemberErrorException,RemoveFolderMemberErrorException,RemovePropertiesErrorException,RemoveTagErrorException,RestoreErrorException,RevokeDeviceSessionBatchErrorException,RevokeDeviceSessionErrorException,RevokeLinkedAppBatchErrorException,RevokeLinkedAppErrorException,RevokeSharedLinkErrorException,SaveCopyReferenceErrorException,SaveUrlErrorException,SearchErrorException,SetAccessInheritanceErrorException,SetCustomQuotaErrorException,SetProfilePhotoErrorException,SharedFolderAccessErrorException,SharedLinkMetadataErrorException,ShareFolderErrorException,SharingAllowlistAddErrorException,SharingAllowlistListContinueErrorException,SharingAllowlistListErrorException,SharingAllowlistRemoveErrorException,SharingUserErrorException,TeamFolderActivateErrorException,TeamFolderArchiveErrorException,TeamFolderCreateErrorException,TeamFolderListContinueErrorException,TeamFolderListErrorException,TeamFolderPermanentlyDeleteErrorException,TeamFolderRenameErrorException,TeamFolderRestoreErrorException,TeamFolderUpdateSyncSettingsErrorException,TeamNamespacesListContinueErrorException,TeamNamespacesListErrorException,TemplateErrorException,ThumbnailErrorException,ThumbnailV2ErrorException,TokenFromOAuth1ErrorException,TokenGetAuthenticatedAdminErrorException,TransferFolderErrorException,UnmountFolderErrorException,UnshareFileErrorException,UnshareFolderErrorException,UpdateFilePolicyErrorException,UpdateFileRequestErrorException,UpdateFolderMemberErrorException,UpdateFolderPolicyErrorException,UpdatePropertiesErrorException,UploadErrorException,UploadSessionAppendBatchErrorException,UploadSessionAppendErrorException,UploadSessionFinishErrorException,UploadSessionStartErrorException,UserFeaturesGetValuesBatchErrorException,UserInfoErrorException
Base class for API-specific exceptions raised by API v2 routes.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDbxApiException(String requestId, LocalizedText userMessage, String message) DbxApiException(String requestId, LocalizedText userMessage, String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringbuildMessage(String routeName, LocalizedText userMessage) protected static StringbuildMessage(String routeName, LocalizedText userMessage, Object errorValue) Returns a human-readable message that can be displayed to the end user.Methods inherited from class com.dropbox.core.DbxException
getRequestIdMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DbxApiException
-
DbxApiException
public DbxApiException(String requestId, LocalizedText userMessage, String message, Throwable cause)
-
-
Method Details
-
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
nullif unavailable
-
buildMessage
-
buildMessage
protected static String buildMessage(String routeName, LocalizedText userMessage, Object errorValue)
-