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:
java.io.Serializable
- Direct Known Subclasses:
AddFileMemberErrorException
,AddFolderMemberErrorException
,AddPropertiesErrorException
,AddSecondaryEmailsErrorException
,AlphaGetMetadataErrorException
,CountFileRequestsErrorException
,CreateFileRequestErrorException
,CreateFolderErrorException
,CreateSharedLinkErrorException
,CreateSharedLinkWithSettingsErrorException
,CustomQuotaErrorException
,DateRangeErrorException
,DeleteAllClosedFileRequestsErrorException
,DeleteErrorException
,DeleteFileRequestErrorException
,DeleteManualContactsErrorException
,DocLookupErrorException
,DownloadErrorException
,DownloadZipErrorException
,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
,MembersDeleteProfilePhotoErrorException
,MembersGetInfoErrorException
,MembersListContinueErrorException
,MembersListErrorException
,MembersRecoverErrorException
,MembersRemoveErrorException
,MembersSendWelcomeErrorException
,MembersSetPermissionsErrorException
,MembersSetProfileErrorException
,MembersSetProfilePhotoErrorException
,MembersSuspendErrorException
,MembersTransferFormerMembersFilesErrorException
,MembersUnsuspendErrorException
,ModifySharedLinkSettingsErrorException
,ModifyTemplateErrorException
,MountFolderErrorException
,PaperDocCreateErrorException
,PaperDocUpdateErrorException
,PaperFolderCreateErrorException
,PollErrorException
,PreviewErrorException
,PropertiesSearchContinueErrorException
,PropertiesSearchErrorException
,RelinquishFileMembershipErrorException
,RelinquishFolderMembershipErrorException
,RelocationErrorException
,RemoveFileMemberErrorException
,RemoveFolderMemberErrorException
,RemovePropertiesErrorException
,RestoreErrorException
,RevokeDeviceSessionBatchErrorException
,RevokeDeviceSessionErrorException
,RevokeLinkedAppBatchErrorException
,RevokeLinkedAppErrorException
,RevokeSharedLinkErrorException
,SaveCopyReferenceErrorException
,SaveUrlErrorException
,SearchErrorException
,SetAccessInheritanceErrorException
,SetCustomQuotaErrorException
,SetProfilePhotoErrorException
,SharedFolderAccessErrorException
,SharedLinkErrorException
,ShareFolderErrorException
,SharingUserErrorException
,TeamFolderActivateErrorException
,TeamFolderArchiveErrorException
,TeamFolderCreateErrorException
,TeamFolderListContinueErrorException
,TeamFolderListErrorException
,TeamFolderPermanentlyDeleteErrorException
,TeamFolderRenameErrorException
,TeamFolderUpdateSyncSettingsErrorException
,TeamNamespacesListContinueErrorException
,TeamNamespacesListErrorException
,TemplateErrorException
,ThumbnailErrorException
,ThumbnailV2ErrorException
,TokenFromOAuth1ErrorException
,TokenGetAuthenticatedAdminErrorException
,TransferFolderErrorException
,UnmountFolderErrorException
,UnshareFileErrorException
,UnshareFolderErrorException
,UpdateFileRequestErrorException
,UpdateFolderMemberErrorException
,UpdateFolderPolicyErrorException
,UpdatePropertiesErrorException
,UploadErrorException
,UploadErrorWithPropertiesException
,UploadSessionFinishErrorException
,UploadSessionLookupErrorException
,UserFeaturesGetValuesBatchErrorException
public class DbxApiException extends DbxException
Base class for API-specific exceptions raised by API v2 routes.- See Also:
- Serialized Form
-
-
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 com.dropbox.core.DbxException
getRequestId
-
-
-
-
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)
-
-