See {@link com.dropbox.core.v2.users.DbxUserUsersRequests} for a list of 8 | * possible requests for this namespace.
9 | */ 10 | package com.dropbox.core.v2.users; 11 | 12 | -------------------------------------------------------------------------------- /stone-java-gradle-plugin/src/main/kotlin/com/dropbox/stone/java/model/StoneConfig.kt: -------------------------------------------------------------------------------- 1 | package com.dropbox.stone.java.model 2 | 3 | import java.io.Serializable 4 | 5 | class StoneConfig( 6 | var packageName: String = "com.dropbox.stone", 7 | var globalRouteFilter: String? = null, 8 | var dataTypesOnly: Boolean = false, 9 | var client: ClientSpec? = null, 10 | var routeWhitelistFilter: String? = null, 11 | ) : Serializable -------------------------------------------------------------------------------- /android/dependencies/releaseRuntimeClasspath.txt: -------------------------------------------------------------------------------- 1 | ch.randelshofer:fastdoubleparser:0.8.0 2 | com.fasterxml.jackson.core:jackson-core:2.15.0 3 | com.fasterxml.jackson:jackson-bom:2.15.0 4 | com.google.code.findbugs:jsr305:3.0.2 5 | org.jetbrains.kotlin:kotlin-stdlib-common:1.6.21 6 | org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.21 7 | org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21 8 | org.jetbrains.kotlin:kotlin-stdlib:1.6.21 9 | org.jetbrains:annotations:13.0 10 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/package-info.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | /** 5 | * This namespace contains endpoints and data types for file request operations. 6 | * 7 | *See {@link com.dropbox.core.v2.filerequests.DbxUserFileRequestsRequests} 8 | * for a list of possible requests for this namespace.
9 | */ 10 | package com.dropbox.core.v2.filerequests; 11 | 12 | -------------------------------------------------------------------------------- /core/src/main/java/com/dropbox/core/v2/callbacks/DbxRouteErrorCallback.java: -------------------------------------------------------------------------------- 1 | package com.dropbox.core.v2.callbacks; 2 | 3 | /** 4 | * Interface for route error callback. 5 | */ 6 | public abstract class DbxRouteErrorCallbackSee {@link com.dropbox.core.v2.files.DbxAppFilesRequests}, {@link 8 | * com.dropbox.core.v2.files.DbxUserFilesRequests} for a list of possible 9 | * requests for this namespace.
10 | */ 11 | package com.dropbox.core.v2.files; 12 | 13 | -------------------------------------------------------------------------------- /core/src/test/resources/file.json: -------------------------------------------------------------------------------- 1 | { 2 | "read_only": false, 3 | "revision": 64, 4 | "bytes": 339773, 5 | "thumb_exists": true, 6 | "rev": "400113f659", 7 | "modified": "Thu, 11 Apr 2013 17:05:17 +0000", 8 | "mime_type": "image/jpeg", 9 | "size": "331.8 KB", 10 | "path": "/Photos/Sample Album/Boston City Flow.jpg", 11 | "is_dir": false, 12 | "modifier": null, 13 | "root": "dropbox", 14 | "client_mtime": "Wed, 15 Sep 2010 14:06:02 +0000", 15 | "icon": "page_white_picture" 16 | } -------------------------------------------------------------------------------- /examples/android/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 |See {@link com.dropbox.core.v2.sharing.DbxAppSharingRequests}, {@link 9 | * com.dropbox.core.v2.sharing.DbxUserSharingRequests} for a list of possible 10 | * requests for this namespace.
11 | */ 12 | package com.dropbox.core.v2.sharing; 13 | 14 | -------------------------------------------------------------------------------- /examples/android/src/main/java/com/dropbox/core/examples/android/internal/di/AppGraph.kt: -------------------------------------------------------------------------------- 1 | package com.dropbox.core.examples.android.internal.di 2 | 3 | import com.dropbox.core.examples.android.internal.api.DropboxApiWrapper 4 | import com.dropbox.core.examples.android.internal.api.DropboxCredentialUtil 5 | import com.dropbox.core.examples.android.internal.api.DropboxOAuthUtil 6 | 7 | interface AppGraph { 8 | val dropboxCredentialUtil: DropboxCredentialUtil 9 | val dropboxOAuthUtil: DropboxOAuthUtil 10 | val dropboxApiWrapper: DropboxApiWrapper 11 | } -------------------------------------------------------------------------------- /examples/examples/src/main/java/com/dropbox/core/examples/global_callbacks/DbxExampleLookupErrorCallback.java: -------------------------------------------------------------------------------- 1 | package com.dropbox.core.examples.global_callbacks; 2 | 3 | import com.dropbox.core.v2.callbacks.DbxRouteErrorCallback; 4 | import com.dropbox.core.v2.files.LookupError; 5 | 6 | public class DbxExampleLookupErrorCallback
10 | * If your web app uses the standard Java Servlet API, just use
11 | * {@link DbxStandardSessionStore}.
12 | *
13 | */
14 | public interface DbxSessionStore {
15 | public /*@Nullable*/String get();
16 | public void set(String value);
17 | public void clear();
18 | }
19 |
--------------------------------------------------------------------------------
/examples/android/src/main/res/drawable/ic_file.xml:
--------------------------------------------------------------------------------
1 | See {@link com.dropbox.core.v2.paper.DbxUserPaperRequests} for a list of 14 | * possible requests for this namespace.
15 | */ 16 | package com.dropbox.core.v2.paper; 17 | 18 | -------------------------------------------------------------------------------- /examples/java/build.gradle: -------------------------------------------------------------------------------- 1 | plugins { 2 | id("java") 3 | id("com.dropbox.dependency-guard") 4 | } 5 | 6 | dependencyGuard { 7 | configuration("compileClasspath") 8 | configuration("runtimeClasspath") 9 | } 10 | 11 | description = 'Java Examples' 12 | 13 | java { 14 | sourceCompatibility = JavaVersion.VERSION_1_8 15 | targetCompatibility = JavaVersion.VERSION_1_8 16 | } 17 | 18 | dependencies { 19 | implementation(project(":core")) 20 | 21 | testImplementation(dropboxJavaSdkLibs.test.junit) 22 | } 23 | 24 | tasks.named("test", Test).configure { 25 | // Uses the "ci" gradle property and sets it as an environment variable for the test 26 | environment("ci", project.findProperty("ci")) 27 | 28 | // Ensure that tests are always run because integration tests are non-deterministic 29 | outputs.upToDateWhen { false } 30 | } 31 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # POM 2 | GROUP = com.dropbox.core 3 | VERSION_NAME=7.1.0-SNAPSHOT 4 | 5 | POM_URL = https://github.com/dropbox/dropbox-sdk-java/ 6 | POM_SCM_URL = https://github.com/dropbox/dropbox-sdk-java/ 7 | POM_SCM_CONNECTION = scm:git:https://github.com/dropbox/dropbox-sdk-java.git 8 | POM_SCM_DEV_CONNECTION = scm:git:git@github.com:dropbox/dropbox-sdk-java.git 9 | 10 | POM_LICENCE_NAME = MIT 11 | POM_LICENCE_URL = http://opensource.org/licenses/MIT 12 | POM_LICENCE_DIST = repo 13 | 14 | POM_DEVELOPER_ID = dropbox-api-team 15 | POM_DEVELOPER_NAME = Dropbox API Team 16 | POM_DEVELOPER_URL = https://github.com/dropbox/ 17 | POM_DEVELOPER_EMAIL = api-support@dropbox.com 18 | 19 | org.gradle.unsafe.configuration-cache=true 20 | org.gradle.caching=true 21 | 22 | # Use AndroidX 23 | android.useAndroidX=true 24 | 25 | org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 26 | -------------------------------------------------------------------------------- /core/src/main/java/com/dropbox/core/oauth/DbxOAuthException.java: -------------------------------------------------------------------------------- 1 | package com.dropbox.core.oauth; 2 | 3 | import com.dropbox.core.DbxException; 4 | 5 | /** 6 | * 7 | * This exception means OAuth endpoint has thrown error. 8 | */ 9 | public class DbxOAuthException extends DbxException { 10 | private static final long serialVersionUID = 0L; 11 | private final DbxOAuthError dbxOAuthError; 12 | 13 | public DbxOAuthException(String requestId, DbxOAuthError dbxOAuthError) { 14 | super(requestId, dbxOAuthError.getErrorDescription()); 15 | this.dbxOAuthError = dbxOAuthError; 16 | } 17 | 18 | /** 19 | * Get the wrapped {@link DbxOAuthError} to tell what error has been thrown. 20 | * @return {@link DbxOAuthError} contains what error has been thrown. 21 | */ 22 | public DbxOAuthError getDbxOAuthError() { 23 | return dbxOAuthError; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /examples/android/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 |11 | * Typically, these kinds of exceptions should be logged, so you can 12 | * investigate later. 13 | *
14 | */ 15 | public abstract class ProtocolException extends DbxException { 16 | private static final long serialVersionUID = 0; 17 | 18 | public ProtocolException(String requestId, String message) { 19 | super(requestId, message); 20 | } 21 | 22 | public ProtocolException(String requestId, String message, Throwable cause) { 23 | super(requestId, message, cause); 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /examples/examples/src/main/java/com/dropbox/core/examples/global_callbacks/ReadMe.md: -------------------------------------------------------------------------------- 1 | # Global Handlers Example 2 | 3 | This repo contains an advanced use-case example (global route error and network error response callbacks). 4 | 5 | Client can supply a callback factory, which allows for consistent, global handling of route-specific error types, as well as general network errors. 6 | 7 | Normally, error handling is done on a request-by-request basis. However, it is convenient to handle some error behavior consistently, regardless of the request or the endpoint. 8 | 9 | For implementing global error handling for general networking errors like an auth error, `getNetworkErrorCallback` should be implemented. For implementing global error handling for route-specific errors, one of the `getRouteErrorCallback` should be implemented. 10 | 11 | To run this example, please replace `"9 | * A more typical situation is that your access token was valid, but the 10 | * user has since "unlinked" your application via the Dropbox website 11 | * (http://www.dropbox.com/account#applications). 12 | * When a user unlinks your application, your access tokens for that user become 13 | * invalid. You can re-run the authorization process to obtain a new access token. 14 | *
15 | */ 16 | public class InvalidAccessTokenException extends DbxException { 17 | private static final long serialVersionUID = 0; 18 | private AuthError authError; 19 | 20 | public InvalidAccessTokenException(String requestId, String message, AuthError authError) { 21 | super(requestId, message); 22 | this.authError = authError; 23 | } 24 | 25 | public AuthError getAuthError() { 26 | return this.authError; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /examples/android/src/main/java/com/dropbox/core/examples/android/internal/di/AppGraphImpl.kt: -------------------------------------------------------------------------------- 1 | package com.dropbox.core.examples.android.internal.di; 2 | 3 | import android.content.Context 4 | import com.dropbox.core.examples.android.internal.api.DropboxApiWrapper 5 | import com.dropbox.core.examples.android.internal.api.DropboxAppConfig 6 | import com.dropbox.core.examples.android.internal.api.DropboxCredentialUtil 7 | import com.dropbox.core.examples.android.internal.api.DropboxOAuthUtil 8 | 9 | internal class AppGraphImpl(context: Context) : AppGraph { 10 | private val dropboxAppConfig = DropboxAppConfig() 11 | 12 | override val dropboxCredentialUtil by lazy { DropboxCredentialUtil(context.applicationContext) } 13 | 14 | override val dropboxOAuthUtil by lazy { 15 | DropboxOAuthUtil( 16 | dropboxAppConfig = dropboxAppConfig, 17 | dropboxCredentialUtil = dropboxCredentialUtil 18 | ) 19 | } 20 | 21 | override val dropboxApiWrapper 22 | get() = DropboxApiWrapper( 23 | dbxCredential = dropboxCredentialUtil.readCredentialLocally()!!, 24 | clientIdentifier = dropboxAppConfig.clientIdentifier 25 | ) 26 | } 27 | -------------------------------------------------------------------------------- /android/src/main/java/com/dropbox/core/android/internal/TokenRequestAsyncTask.kt: -------------------------------------------------------------------------------- 1 | package com.dropbox.core.android.internal; 2 | 3 | import android.os.AsyncTask 4 | import android.util.Log 5 | import com.dropbox.core.DbxAuthFinish 6 | import com.dropbox.core.DbxException 7 | import com.dropbox.core.DbxHost 8 | import com.dropbox.core.DbxPKCEManager 9 | import com.dropbox.core.DbxRequestConfig 10 | 11 | internal class TokenRequestAsyncTask( 12 | private val code: String, 13 | private val mPKCEManager: DbxPKCEManager, 14 | private val requestConfig: DbxRequestConfig, 15 | private val appKey: String, 16 | private val host: DbxHost, 17 | ) : AsyncTaskThis exception is raised by {@link DbxUserOpenidRequests#userinfo}.
13 | */ 14 | public class UserInfoErrorException extends DbxApiException { 15 | // exception for routes: 16 | // 2/openid/userinfo 17 | 18 | private static final long serialVersionUID = 0L; 19 | 20 | /** 21 | * The error reported by {@link DbxUserOpenidRequests#userinfo}. 22 | */ 23 | public final UserInfoError errorValue; 24 | 25 | public UserInfoErrorException(String routeName, String requestId, LocalizedText userMessage, UserInfoError errorValue) { 26 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 27 | if (errorValue == null) { 28 | throw new NullPointerException("errorValue"); 29 | } 30 | this.errorValue = errorValue; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ExportErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link ExportError} error. 11 | * 12 | *This exception is raised by {@link 13 | * DbxUserFilesRequests#export(String,String)}.
14 | */ 15 | public class ExportErrorException extends DbxApiException { 16 | // exception for routes: 17 | // 2/files/export 18 | 19 | private static final long serialVersionUID = 0L; 20 | 21 | /** 22 | * The error reported by {@link DbxUserFilesRequests#export(String,String)}. 23 | */ 24 | public final ExportError errorValue; 25 | 26 | public ExportErrorException(String routeName, String requestId, LocalizedText userMessage, ExportError errorValue) { 27 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 28 | if (errorValue == null) { 29 | throw new NullPointerException("errorValue"); 30 | } 31 | this.errorValue = errorValue; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /examples/java/src/main/java/com/dropbox/core/examples/account_info/AccountInfoExample.java: -------------------------------------------------------------------------------- 1 | package com.dropbox.core.examples.account_info; 2 | 3 | import com.dropbox.core.DbxException; 4 | import com.dropbox.core.DbxRequestConfig; 5 | import com.dropbox.core.examples.CredentialsUtil; 6 | import com.dropbox.core.oauth.DbxCredential; 7 | import com.dropbox.core.v2.DbxClientV2; 8 | import com.dropbox.core.v2.users.FullAccount; 9 | 10 | 11 | public final class AccountInfoExample { 12 | 13 | public static void main(String[] args) { 14 | DbxCredential credential = CredentialsUtil.getDbxCredential(); 15 | new AccountInfoExample().runExample(credential); 16 | } 17 | 18 | public void runExample(DbxCredential credential) { 19 | DbxRequestConfig requestConfig = new DbxRequestConfig("examples-account-info"); 20 | DbxClientV2 dbxClient = new DbxClientV2(requestConfig, credential); 21 | 22 | try { 23 | FullAccount dbxAccountInfo = dbxClient.users().getCurrentAccount(); 24 | System.out.println(dbxAccountInfo.toStringMultiline()); 25 | } catch (DbxException ex) { 26 | throw new RuntimeException("Error making API call: " + ex.getMessage()); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AddTagErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link AddTagError} error. 11 | * 12 | *This exception is raised by {@link 13 | * DbxUserFilesRequests#tagsAdd(String,String)}.
14 | */ 15 | public class AddTagErrorException extends DbxApiException { 16 | // exception for routes: 17 | // 2/files/tags/add 18 | 19 | private static final long serialVersionUID = 0L; 20 | 21 | /** 22 | * The error reported by {@link 23 | * DbxUserFilesRequests#tagsAdd(String,String)}. 24 | */ 25 | public final AddTagError errorValue; 26 | 27 | public AddTagErrorException(String routeName, String requestId, LocalizedText userMessage, AddTagError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RestoreErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link RestoreError} error. 11 | * 12 | *This exception is raised by {@link 13 | * DbxUserFilesRequests#restore(String,String)}.
14 | */ 15 | public class RestoreErrorException extends DbxApiException { 16 | // exception for routes: 17 | // 2/files/restore 18 | 19 | private static final long serialVersionUID = 0L; 20 | 21 | /** 22 | * The error reported by {@link 23 | * DbxUserFilesRequests#restore(String,String)}. 24 | */ 25 | public final RestoreError errorValue; 26 | 27 | public RestoreErrorException(String routeName, String requestId, LocalizedText userMessage, RestoreError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/BaseTagErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link BaseTagError} error. 11 | * 12 | *This exception is raised by {@link 13 | * DbxUserFilesRequests#tagsGet(java.util.List)}.
14 | */ 15 | public class BaseTagErrorException extends DbxApiException { 16 | // exception for routes: 17 | // 2/files/tags/get 18 | 19 | private static final long serialVersionUID = 0L; 20 | 21 | /** 22 | * The error reported by {@link 23 | * DbxUserFilesRequests#tagsGet(java.util.List)}. 24 | */ 25 | public final BaseTagError errorValue; 26 | 27 | public BaseTagErrorException(String routeName, String requestId, LocalizedText userMessage, BaseTagError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveUrlErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link SaveUrlError} error. 11 | * 12 | *This exception is raised by {@link 13 | * DbxUserFilesRequests#saveUrl(String,String)}.
14 | */ 15 | public class SaveUrlErrorException extends DbxApiException { 16 | // exception for routes: 17 | // 2/files/save_url 18 | 19 | private static final long serialVersionUID = 0L; 20 | 21 | /** 22 | * The error reported by {@link 23 | * DbxUserFilesRequests#saveUrl(String,String)}. 24 | */ 25 | public final SaveUrlError errorValue; 26 | 27 | public SaveUrlErrorException(String routeName, String requestId, LocalizedText userMessage, SaveUrlError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupDeleteErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GroupDeleteError} 11 | * error. 12 | * 13 | *This exception is raised by {@link DbxTeamTeamRequests#groupsDelete}. 14 | *
15 | */ 16 | public class GroupDeleteErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/groups/delete 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxTeamTeamRequests#groupsDelete}. 24 | */ 25 | public final GroupDeleteError errorValue; 26 | 27 | public GroupDeleteErrorException(String routeName, String requestId, LocalizedText userMessage, GroupDeleteError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /examples/android/src/main/res/layout/activity_files.xml: -------------------------------------------------------------------------------- 1 |This exception is raised by {@link 13 | * DbxUserFilesRequests#download(String,String)}.
14 | */ 15 | public class DownloadErrorException extends DbxApiException { 16 | // exception for routes: 17 | // 2/files/download 18 | 19 | private static final long serialVersionUID = 0L; 20 | 21 | /** 22 | * The error reported by {@link 23 | * DbxUserFilesRequests#download(String,String)}. 24 | */ 25 | public final DownloadError errorValue; 26 | 27 | public DownloadErrorException(String routeName, String requestId, LocalizedText userMessage, DownloadError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PreviewErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link PreviewError} error. 11 | * 12 | *This exception is raised by {@link 13 | * DbxUserFilesRequests#getPreview(String,String)}.
14 | */ 15 | public class PreviewErrorException extends DbxApiException { 16 | // exception for routes: 17 | // 2/files/get_preview 18 | 19 | private static final long serialVersionUID = 0L; 20 | 21 | /** 22 | * The error reported by {@link 23 | * DbxUserFilesRequests#getPreview(String,String)}. 24 | */ 25 | public final PreviewError errorValue; 26 | 27 | public PreviewErrorException(String routeName, String requestId, LocalizedText userMessage, PreviewError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link ThumbnailError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#getThumbnail(String)}.
15 | */ 16 | public class ThumbnailErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/get_thumbnail 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserFilesRequests#getThumbnail(String)}. 24 | */ 25 | public final ThumbnailError errorValue; 26 | 27 | public ThumbnailErrorException(String routeName, String requestId, LocalizedText userMessage, ThumbnailError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.users; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GetAccountError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserUsersRequests#getAccount(String)}.
15 | */ 16 | public class GetAccountErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/users/get_account 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserUsersRequests#getAccount(String)}. 24 | */ 25 | public final GetAccountError errorValue; 26 | 27 | public GetAccountErrorException(String routeName, String requestId, LocalizedText userMessage, GetAccountError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/DownloadZipErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link DownloadZipError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#downloadZip(String)}.
15 | */ 16 | public class DownloadZipErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/download_zip 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserFilesRequests#downloadZip(String)}. 24 | */ 25 | public final DownloadZipError errorValue; 26 | 27 | public DownloadZipErrorException(String routeName, String requestId, LocalizedText userMessage, DownloadZipError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetMetadataErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GetMetadataError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#getMetadata(String)}.
15 | */ 16 | public class GetMetadataErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/get_metadata 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserFilesRequests#getMetadata(String)}. 24 | */ 25 | public final GetMetadataError errorValue; 26 | 27 | public GetMetadataErrorException(String routeName, String requestId, LocalizedText userMessage, GetMetadataError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupCreateErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GroupCreateError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#groupsCreate(String)}.
15 | */ 16 | public class GroupCreateErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/groups/create 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxTeamTeamRequests#groupsCreate(String)}. 24 | */ 25 | public final GroupCreateError errorValue; 26 | 27 | public GroupCreateErrorException(String routeName, String requestId, LocalizedText userMessage, GroupCreateError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsGetInfoErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GroupsGetInfoError} 11 | * error. 12 | * 13 | *This exception is raised by {@link DbxTeamTeamRequests#groupsGetInfo}. 14 | *
15 | */ 16 | public class GroupsGetInfoErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/groups/get_info 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxTeamTeamRequests#groupsGetInfo}. 24 | */ 25 | public final GroupsGetInfoError errorValue; 26 | 27 | public GroupsGetInfoErrorException(String routeName, String requestId, LocalizedText userMessage, GroupsGetInfoError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.teamlog; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GetTeamEventsError} 11 | * error. 12 | * 13 | *This exception is raised by {@link DbxTeamTeamLogRequests#getEvents}. 14 | *
15 | */ 16 | public class GetTeamEventsErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team_log/get_events 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxTeamTeamLogRequests#getEvents}. 24 | */ 25 | public final GetTeamEventsError errorValue; 26 | 27 | public GetTeamEventsErrorException(String routeName, String requestId, LocalizedText userMessage, GetTeamEventsError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RemoveTagErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link RemoveTagError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#tagsRemove(String,String)}.
15 | */ 16 | public class RemoveTagErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/tags/remove 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserFilesRequests#tagsRemove(String,String)}. 25 | */ 26 | public final RemoveTagError errorValue; 27 | 28 | public RemoveTagErrorException(String routeName, String requestId, LocalizedText userMessage, RemoveTagError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/MountFolderErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link MountFolderError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#mountFolder(String)}.
15 | */ 16 | public class MountFolderErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/mount_folder 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserSharingRequests#mountFolder(String)}. 24 | */ 25 | public final MountFolderError errorValue; 26 | 27 | public MountFolderErrorException(String routeName, String requestId, LocalizedText userMessage, MountFolderError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ShareFolderErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link ShareFolderError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#shareFolder(String)}.
15 | */ 16 | public class ShareFolderErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/share_folder 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserSharingRequests#shareFolder(String)}. 24 | */ 25 | public final ShareFolderError errorValue; 26 | 27 | public ShareFolderErrorException(String routeName, String requestId, LocalizedText userMessage, ShareFolderError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFileErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link UnshareFileError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#unshareFile(String)}.
15 | */ 16 | public class UnshareFileErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/unshare_file 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserSharingRequests#unshareFile(String)}. 24 | */ 25 | public final UnshareFileError errorValue; 26 | 27 | public UnshareFileErrorException(String routeName, String requestId, LocalizedText userMessage, UnshareFileError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListRevisionsErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link ListRevisionsError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#listRevisions(String)}.
15 | */ 16 | public class ListRevisionsErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/list_revisions 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserFilesRequests#listRevisions(String)}. 24 | */ 25 | public final ListRevisionsError errorValue; 26 | 27 | public ListRevisionsErrorException(String routeName, String requestId, LocalizedText userMessage, ListRevisionsError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link TeamFolderListError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#teamFolderList(long)}.
15 | */ 16 | public class TeamFolderListErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/team_folder/list 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxTeamTeamRequests#teamFolderList(long)}. 24 | */ 25 | public final TeamFolderListError errorValue; 26 | 27 | public TeamFolderListErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderListError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/src/main/java/com/dropbox/core/stone/CompositeSerializer.java: -------------------------------------------------------------------------------- 1 | package com.dropbox.core.stone; 2 | 3 | import java.io.IOException; 4 | 5 | import com.fasterxml.jackson.core.JsonGenerationException; 6 | import com.fasterxml.jackson.core.JsonGenerator; 7 | import com.fasterxml.jackson.core.JsonParseException; 8 | import com.fasterxml.jackson.core.JsonParser; 9 | import com.fasterxml.jackson.core.JsonToken; 10 | 11 | public abstract class CompositeSerializerThis exception is raised by {@link 14 | * DbxTeamTeamRequests#groupsUpdate(GroupSelector)}.
15 | */ 16 | public class GroupUpdateErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/groups/update 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#groupsUpdate(GroupSelector)}. 25 | */ 26 | public final GroupUpdateError errorValue; 27 | 28 | public GroupUpdateErrorException(String routeName, String requestId, LocalizedText userMessage, GroupUpdateError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsPollErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GroupsPollError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#groupsJobStatusGet(String)}.
15 | */ 16 | public class GroupsPollErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/groups/job_status/get 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#groupsJobStatusGet(String)}. 25 | */ 26 | public final GroupsPollError errorValue; 27 | 28 | public GroupsPollErrorException(String routeName, String requestId, LocalizedText userMessage, GroupsPollError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/GetFileRequestErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.filerequests; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GetFileRequestError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFileRequestsRequests#get(String)}.
15 | */ 16 | public class GetFileRequestErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/file_requests/get 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserFileRequestsRequests#get(String)}. 24 | */ 25 | public final GetFileRequestError errorValue; 26 | 27 | public GetFileRequestErrorException(String routeName, String requestId, LocalizedText userMessage, GetFileRequestError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ThumbnailV2ErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link ThumbnailV2Error} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxAppFilesRequests#getThumbnailV2(PathOrLink)}.
15 | */ 16 | public class ThumbnailV2ErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/get_thumbnail_v2 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxAppFilesRequests#getThumbnailV2(PathOrLink)}. 25 | */ 26 | public final ThumbnailV2Error errorValue; 27 | 28 | public ThumbnailV2ErrorException(String routeName, String requestId, LocalizedText userMessage, ThumbnailV2Error errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListSharedLinksErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link ListSharedLinksError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#listSharedLinks}.
15 | */ 16 | public class ListSharedLinksErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/list_shared_links 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserSharingRequests#listSharedLinks}. 24 | */ 25 | public final ListSharedLinksError errorValue; 26 | 27 | public ListSharedLinksErrorException(String routeName, String requestId, LocalizedText userMessage, ListSharedLinksError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /examples/android/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in $ANDROID_SDK/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # OkHttp and Servlet optional dependencies 20 | 21 | -dontwarn okio.** 22 | -dontwarn okhttp3.** 23 | -dontwarn com.squareup.okhttp.** 24 | -dontwarn com.google.apphosting.** 25 | -dontwarn com.google.appengine.** 26 | -dontwarn com.google.protos.cloud.sql.** 27 | -dontwarn com.google.cloud.sql.** 28 | -dontwarn javax.activation.** 29 | -dontwarn jakarta.mail.** 30 | -dontwarn jakarta.servlet.** 31 | -dontwarn org.apache.** 32 | 33 | # Support classes for compatibility with older API versions 34 | 35 | -dontwarn android.support.** 36 | -dontnote android.support.** 37 | 38 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CountFileRequestsErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.filerequests; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * CountFileRequestsError} error. 12 | * 13 | *This exception is raised by {@link DbxUserFileRequestsRequests#count}. 14 | *
15 | */ 16 | public class CountFileRequestsErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/file_requests/count 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserFileRequestsRequests#count}. 24 | */ 25 | public final CountFileRequestsError errorValue; 26 | 27 | public CountFileRequestsErrorException(String routeName, String requestId, LocalizedText userMessage, CountFileRequestsError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperCreateErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link PaperCreateError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#paperCreate(String,ImportFormat)}.
15 | */ 16 | public class PaperCreateErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/paper/create 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserFilesRequests#paperCreate(String,ImportFormat)}. 25 | */ 26 | public final PaperCreateError errorValue; 27 | 28 | public PaperCreateErrorException(String routeName, String requestId, LocalizedText userMessage, PaperCreateError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnmountFolderErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link UnmountFolderError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#unmountFolder(String)}.
15 | */ 16 | public class UnmountFolderErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/unmount_folder 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#unmountFolder(String)}. 25 | */ 26 | public final UnmountFolderError errorValue; 27 | 28 | public UnmountFolderErrorException(String routeName, String requestId, LocalizedText userMessage, UnmountFolderError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamDevicesErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link ListTeamDevicesError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#devicesListTeamDevices}.
15 | */ 16 | public class ListTeamDevicesErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/devices/list_team_devices 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxTeamTeamRequests#devicesListTeamDevices}. 24 | */ 25 | public final ListTeamDevicesError errorValue; 26 | 27 | public ListTeamDevicesErrorException(String routeName, String requestId, LocalizedText userMessage, ListTeamDevicesError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /examples/examples/src/test/java/com/dropbox/core/examples/FileCreationUtils.kt: -------------------------------------------------------------------------------- 1 | package com.dropbox.core.examples 2 | 3 | import java.io.File 4 | import java.io.FileOutputStream 5 | import java.security.SecureRandom 6 | 7 | object FileCreationUtils { 8 | fun bytesToMb(bytes: Long): Long { 9 | val kb = bytes / 1000 10 | return kb / 1000 11 | } 12 | 13 | fun bytesToKb(bytes: Long): Long { 14 | return bytes / 1000 15 | } 16 | 17 | fun kbToBytes(kb: Long): Long { 18 | return kb * 1000 19 | } 20 | 21 | fun mbToBytes(mb: Long): Long { 22 | val kb = mb * 1000 23 | return kb * 1000 24 | } 25 | 26 | fun createTempFileOfSize(tempFile: File, sizeInBytes: Int): File { 27 | // to fill with random bytes. 28 | FileOutputStream(tempFile).use { out -> 29 | val bytes = ByteArray(sizeInBytes) 30 | SecureRandom().nextBytes(bytes) 31 | out.write(bytes) 32 | } 33 | 34 | val fileSizeInBytes: Long = tempFile.length() 35 | 36 | println("Random Data Written To File: ${tempFile.absolutePath}") 37 | println("File Created of Size ${bytesToKb(fileSizeInBytes)} KB") 38 | println("File Created of Size ${bytesToMb(fileSizeInBytes)} MB") 39 | 40 | return tempFile 41 | } 42 | } -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/ListDocsCursorErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.paper; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link ListDocsCursorError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserPaperRequests#docsListContinue(String)}.
15 | */ 16 | public class ListDocsCursorErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/paper/docs/list/continue 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserPaperRequests#docsListContinue(String)}. 25 | */ 26 | public final ListDocsCursorError errorValue; 27 | 28 | public ListDocsCursorErrorException(String routeName, String requestId, LocalizedText userMessage, ListDocsCursorError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperFolderCreateErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.paper; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * PaperFolderCreateError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserPaperRequests#foldersCreate(String)}.
15 | */ 16 | public class PaperFolderCreateErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/paper/folders/create 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserPaperRequests#foldersCreate(String)}. 24 | */ 25 | public final PaperFolderCreateError errorValue; 26 | 27 | public PaperFolderCreateErrorException(String routeName, String requestId, LocalizedText userMessage, PaperFolderCreateError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/SharedLinkErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link SharedLinkError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxAppSharingRequests#getSharedLinkMetadata(String)}.
15 | */ 16 | public class SharedLinkErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/get_shared_link_metadata 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxAppSharingRequests#getSharedLinkMetadata(String)}. 25 | */ 26 | public final SharedLinkError errorValue; 27 | 28 | public SharedLinkErrorException(String routeName, String requestId, LocalizedText userMessage, SharedLinkError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRemoveErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link MembersRemoveError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#membersRemove(UserSelectorArg)}.
15 | */ 16 | public class MembersRemoveErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/members/remove 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#membersRemove(UserSelectorArg)}. 25 | */ 26 | public final MembersRemoveError errorValue; 27 | 28 | public MembersRemoveErrorException(String routeName, String requestId, LocalizedText userMessage, MembersRemoveError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamNamespacesListErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * TeamNamespacesListError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#namespacesList(long)}.
15 | */ 16 | public class TeamNamespacesListErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/namespaces/list 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxTeamTeamRequests#namespacesList(long)}. 24 | */ 25 | public final TeamNamespacesListError errorValue; 26 | 27 | public TeamNamespacesListErrorException(String routeName, String requestId, LocalizedText userMessage, TeamNamespacesListError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadSessionStartErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * UploadSessionStartError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#uploadSessionStart}.
15 | */ 16 | public class UploadSessionStartErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/upload_session/start 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserFilesRequests#uploadSessionStart}. 24 | */ 25 | public final UploadSessionStartError errorValue; 26 | 27 | public UploadSessionStartErrorException(String routeName, String requestId, LocalizedText userMessage, UploadSessionStartError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinksErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GetSharedLinksError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#getSharedLinks(String)}.
15 | */ 16 | public class GetSharedLinksErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/get_shared_links 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#getSharedLinks(String)}. 25 | */ 26 | public final GetSharedLinksError errorValue; 27 | 28 | public GetSharedLinksErrorException(String routeName, String requestId, LocalizedText userMessage, GetSharedLinksError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/auth/TokenFromOAuth1ErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.auth; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link TokenFromOAuth1Error} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxAppAuthRequests#tokenFromOauth1(String,String)}.
15 | */ 16 | public class TokenFromOAuth1ErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/auth/token/from_oauth1 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxAppAuthRequests#tokenFromOauth1(String,String)}. 25 | */ 26 | public final TokenFromOAuth1Error errorValue; 27 | 28 | public TokenFromOAuth1ErrorException(String routeName, String requestId, LocalizedText userMessage, TokenFromOAuth1Error errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/UpdateFileRequestErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.filerequests; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * UpdateFileRequestError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFileRequestsRequests#update(String)}.
15 | */ 16 | public class UpdateFileRequestErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/file_requests/update 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxUserFileRequestsRequests#update(String)}. 24 | */ 25 | public final UpdateFileRequestError errorValue; 26 | 27 | public UpdateFileRequestErrorException(String routeName, String requestId, LocalizedText userMessage, UpdateFileRequestError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocCreateErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.paper; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link PaperDocCreateError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserPaperRequests#docsCreate(ImportFormat,String)}.
15 | */ 16 | public class PaperDocCreateErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/paper/docs/create 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserPaperRequests#docsCreate(ImportFormat,String)}. 25 | */ 26 | public final PaperDocCreateError errorValue; 27 | 28 | public PaperDocCreateErrorException(String routeName, String requestId, LocalizedText userMessage, PaperDocCreateError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UnshareFolderErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link UnshareFolderError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#unshareFolder(String,boolean)}.
15 | */ 16 | public class UnshareFolderErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/unshare_folder 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#unshareFolder(String,boolean)}. 25 | */ 26 | public final UnshareFolderError errorValue; 27 | 28 | public UnshareFolderErrorException(String routeName, String requestId, LocalizedText userMessage, UnshareFolderError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersRecoverErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link MembersRecoverError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#membersRecover(UserSelectorArg)}.
15 | */ 16 | public class MembersRecoverErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/members/recover 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#membersRecover(UserSelectorArg)}. 25 | */ 26 | public final MembersRecoverError errorValue; 27 | 28 | public MembersRecoverErrorException(String routeName, String requestId, LocalizedText userMessage, MembersRecoverError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistAddErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * SharingAllowlistAddError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#sharingAllowlistAdd}.
15 | */ 16 | public class SharingAllowlistAddErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/sharing_allowlist/add 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxTeamTeamRequests#sharingAllowlistAdd}. 24 | */ 25 | public final SharingAllowlistAddError errorValue; 26 | 27 | public SharingAllowlistAddErrorException(String routeName, String requestId, LocalizedText userMessage, SharingAllowlistAddError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/AlphaGetMetadataErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * AlphaGetMetadataError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#alphaGetMetadata(String)}.
15 | */ 16 | public class AlphaGetMetadataErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/alpha/get_metadata 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserFilesRequests#alphaGetMetadata(String)}. 25 | */ 26 | public final AlphaGetMetadataError errorValue; 27 | 28 | public AlphaGetMetadataErrorException(String routeName, String requestId, LocalizedText userMessage, AlphaGetMetadataError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetCopyReferenceErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * GetCopyReferenceError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#copyReferenceGet(String)}.
15 | */ 16 | public class GetCopyReferenceErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/copy_reference/get 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserFilesRequests#copyReferenceGet(String)}. 25 | */ 26 | public final GetCopyReferenceError errorValue; 27 | 28 | public GetCopyReferenceErrorException(String routeName, String requestId, LocalizedText userMessage, GetCopyReferenceError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetTemporaryLinkErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * GetTemporaryLinkError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#getTemporaryLink(String)}.
15 | */ 16 | public class GetTemporaryLinkErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/get_temporary_link 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserFilesRequests#getTemporaryLink(String)}. 25 | */ 26 | public final GetTemporaryLinkError errorValue; 27 | 28 | public GetTemporaryLinkErrorException(String routeName, String requestId, LocalizedText userMessage, GetTemporaryLinkError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFileMembersErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link ListFileMembersError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#listFileMembers(String)}.
15 | */ 16 | public class ListFileMembersErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/list_file_members 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#listFileMembers(String)}. 25 | */ 26 | public final ListFileMembersError errorValue; 27 | 28 | public ListFileMembersErrorException(String routeName, String requestId, LocalizedText userMessage, ListFileMembersError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/TransferFolderErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link TransferFolderError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#transferFolder(String,String)}.
15 | */ 16 | public class TransferFolderErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/transfer_folder 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#transferFolder(String,String)}. 25 | */ 26 | public final TransferFolderError errorValue; 27 | 28 | public TransferFolderErrorException(String routeName, String requestId, LocalizedText userMessage, TransferFolderError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupSelectorErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GroupSelectorError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#groupsMembersList(GroupSelector,long)}.
15 | */ 16 | public class GroupSelectorErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/groups/members/list 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#groupsMembersList(GroupSelector,long)}. 25 | */ 26 | public final GroupSelectorError errorValue; 27 | 28 | public GroupSelectorErrorException(String routeName, String requestId, LocalizedText userMessage, GroupSelectorError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/users/GetAccountBatchErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.users; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GetAccountBatchError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserUsersRequests#getAccountBatch(java.util.List)}.
15 | */ 16 | public class GetAccountBatchErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/users/get_account_batch 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserUsersRequests#getAccountBatch(java.util.List)}. 25 | */ 26 | public final GetAccountBatchError errorValue; 27 | 28 | public GetAccountBatchErrorException(String routeName, String requestId, LocalizedText userMessage, GetAccountBatchError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/src/main/java/com/dropbox/core/util/CountingOutputStream.java: -------------------------------------------------------------------------------- 1 | package com.dropbox.core.util; 2 | 3 | import java.io.IOException; 4 | import java.io.OutputStream; 5 | 6 | public class CountingOutputStream extends OutputStream 7 | { 8 | private final OutputStream out; 9 | private long bytesWritten = 0; 10 | 11 | public CountingOutputStream(OutputStream out) 12 | { 13 | this.out = out; 14 | } 15 | 16 | public long getBytesWritten() 17 | { 18 | return bytesWritten; 19 | } 20 | 21 | @Override 22 | public void write(int b) throws IOException 23 | { 24 | bytesWritten++; 25 | out.write(b); 26 | } 27 | 28 | @Override 29 | public void write(byte[] b) throws IOException 30 | { 31 | bytesWritten += b.length; 32 | out.write(b); 33 | } 34 | 35 | @Override 36 | public void write(byte[] b, int off, int len) throws IOException 37 | { 38 | bytesWritten += len; 39 | out.write(b, off, len); 40 | } 41 | 42 | @Override 43 | public void flush() throws IOException 44 | { 45 | out.flush(); 46 | } 47 | 48 | @Override 49 | public void close() throws IOException 50 | { 51 | throw new UnsupportedOperationException("You aren't allowed to call close() on this object."); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFileMemberErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link AddFileMemberError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#addFileMember(String,java.util.List)}.
15 | */ 16 | public class AddFileMemberErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/add_file_member 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#addFileMember(String,java.util.List)}. 25 | */ 26 | public final AddFileMemberError errorValue; 27 | 28 | public AddFileMemberErrorException(String routeName, String requestId, LocalizedText userMessage, AddFileMemberError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/CreateSharedLinkErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * CreateSharedLinkError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#createSharedLink(String)}.
15 | */ 16 | public class CreateSharedLinkErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/create_shared_link 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#createSharedLink(String)}. 25 | */ 26 | public final CreateSharedLinkError errorValue; 27 | 28 | public CreateSharedLinkErrorException(String routeName, String requestId, LocalizedText userMessage, CreateSharedLinkError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/RevokeSharedLinkErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * RevokeSharedLinkError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#revokeSharedLink(String)}.
15 | */ 16 | public class RevokeSharedLinkErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/revoke_shared_link 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#revokeSharedLink(String)}. 25 | */ 26 | public final RevokeSharedLinkError errorValue; 27 | 28 | public RevokeSharedLinkErrorException(String routeName, String requestId, LocalizedText userMessage, RevokeSharedLinkError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupsListContinueErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * GroupsListContinueError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#groupsListContinue(String)}.
15 | */ 16 | public class GroupsListContinueErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/groups/list/continue 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#groupsListContinue(String)}. 25 | */ 26 | public final GroupsListContinueError errorValue; 27 | 28 | public GroupsListContinueErrorException(String routeName, String requestId, LocalizedText userMessage, GroupsListContinueError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListTeamAppsErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link ListTeamAppsError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}.
15 | */ 16 | public class ListTeamAppsErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/linked_apps/list_team_linked_apps 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#linkedAppsListTeamLinkedApps(String)}. 25 | */ 26 | public final ListTeamAppsError errorValue; 27 | 28 | public ListTeamAppsErrorException(String routeName, String requestId, LocalizedText userMessage, ListTeamAppsError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSendWelcomeErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * MembersSendWelcomeError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#membersSendWelcomeEmail}.
15 | */ 16 | public class MembersSendWelcomeErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/members/send_welcome_email 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#membersSendWelcomeEmail}. 25 | */ 26 | public final MembersSendWelcomeError errorValue; 27 | 28 | public MembersSendWelcomeErrorException(String routeName, String requestId, LocalizedText userMessage, MembersSendWelcomeError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersSuspendErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link MembersSuspendError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#membersSuspend(UserSelectorArg,boolean)}.
15 | */ 16 | public class MembersSuspendErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/members/suspend 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#membersSuspend(UserSelectorArg,boolean)}. 25 | */ 26 | public final MembersSuspendError errorValue; 27 | 28 | public MembersSuspendErrorException(String routeName, String requestId, LocalizedText userMessage, MembersSuspendError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersUnsuspendErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * MembersUnsuspendError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#membersUnsuspend(UserSelectorArg)}.
15 | */ 16 | public class MembersUnsuspendErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/members/unsuspend 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#membersUnsuspend(UserSelectorArg)}. 25 | */ 26 | public final MembersUnsuspendError errorValue; 27 | 28 | public MembersUnsuspendErrorException(String routeName, String requestId, LocalizedText userMessage, MembersUnsuspendError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderActivateErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * TeamFolderActivateError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#teamFolderActivate(String)}.
15 | */ 16 | public class TeamFolderActivateErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/team_folder/activate 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#teamFolderActivate(String)}. 25 | */ 26 | public final TeamFolderActivateError errorValue; 27 | 28 | public TeamFolderActivateErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderActivateError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderRenameErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * TeamFolderRenameError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#teamFolderRename(String,String)}.
15 | */ 16 | public class TeamFolderRenameErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/team_folder/rename 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#teamFolderRename(String,String)}. 25 | */ 26 | public final TeamFolderRenameError errorValue; 27 | 28 | public TeamFolderRenameErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderRenameError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/account/SetProfilePhotoErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.account; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link SetProfilePhotoError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserAccountRequests#setProfilePhoto(PhotoSourceArg)}.
15 | */ 16 | public class SetProfilePhotoErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/account/set_profile_photo 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserAccountRequests#setProfilePhoto(PhotoSourceArg)}. 25 | */ 26 | public final SetProfilePhotoError errorValue; 27 | 28 | public SetProfilePhotoErrorException(String routeName, String requestId, LocalizedText userMessage, SetProfilePhotoError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderContinueErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * ListFolderContinueError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxAppFilesRequests#listFolderContinue(String)}.
15 | */ 16 | public class ListFolderContinueErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/list_folder/continue 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxAppFilesRequests#listFolderContinue(String)}. 25 | */ 26 | public final ListFolderContinueError errorValue; 27 | 28 | public ListFolderContinueErrorException(String routeName, String requestId, LocalizedText userMessage, ListFolderContinueError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/SaveCopyReferenceErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * SaveCopyReferenceError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#copyReferenceSave(String,String)}.
15 | */ 16 | public class SaveCopyReferenceErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/copy_reference/save 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserFilesRequests#copyReferenceSave(String,String)}. 25 | */ 26 | public final SaveCopyReferenceError errorValue; 27 | 28 | public SaveCopyReferenceErrorException(String routeName, String requestId, LocalizedText userMessage, SaveCopyReferenceError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetSharedLinkFileErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * GetSharedLinkFileError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#getSharedLinkFile(String)}.
15 | */ 16 | public class GetSharedLinkFileErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/get_shared_link_file 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#getSharedLinkFile(String)}. 25 | */ 26 | public final GetSharedLinkFileError errorValue; 27 | 28 | public GetSharedLinkFileErrorException(String routeName, String requestId, LocalizedText userMessage, GetSharedLinkFileError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsGetPolicyErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * LegalHoldsGetPolicyError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#legalHoldsGetPolicy(String)}.
15 | */ 16 | public class LegalHoldsGetPolicyErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/legal_holds/get_policy 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#legalHoldsGetPolicy(String)}. 25 | */ 26 | public final LegalHoldsGetPolicyError errorValue; 27 | 28 | public LegalHoldsGetPolicyErrorException(String routeName, String requestId, LocalizedText userMessage, LegalHoldsGetPolicyError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersDevicesErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * ListMembersDevicesError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#devicesListMembersDevices}.
15 | */ 16 | public class ListMembersDevicesErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/devices/list_members_devices 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#devicesListMembersDevices}. 25 | */ 26 | public final ListMembersDevicesError errorValue; 27 | 28 | public ListMembersDevicesErrorException(String routeName, String requestId, LocalizedText userMessage, ListMembersDevicesError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistRemoveErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * SharingAllowlistRemoveError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#sharingAllowlistRemove}.
15 | */ 16 | public class SharingAllowlistRemoveErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/sharing_allowlist/remove 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link DbxTeamTeamRequests#sharingAllowlistRemove}. 24 | */ 25 | public final SharingAllowlistRemoveError errorValue; 26 | 27 | public SharingAllowlistRemoveErrorException(String routeName, String requestId, LocalizedText userMessage, SharingAllowlistRemoveError errorValue) { 28 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 29 | if (errorValue == null) { 30 | throw new NullPointerException("errorValue"); 31 | } 32 | this.errorValue = errorValue; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderArchiveErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * TeamFolderArchiveError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#teamFolderArchive(String,boolean)}.
15 | */ 16 | public class TeamFolderArchiveErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/team_folder/archive 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#teamFolderArchive(String,boolean)}. 25 | */ 26 | public final TeamFolderArchiveError errorValue; 27 | 28 | public TeamFolderArchiveErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderArchiveError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/CreateFileRequestErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.filerequests; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * CreateFileRequestError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFileRequestsRequests#create(String,String)}.
15 | */ 16 | public class CreateFileRequestErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/file_requests/create 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserFileRequestsRequests#create(String,String)}. 25 | */ 26 | public final CreateFileRequestError errorValue; 27 | 28 | public CreateFileRequestErrorException(String routeName, String requestId, LocalizedText userMessage, CreateFileRequestError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/filerequests/DeleteFileRequestErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.filerequests; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * DeleteFileRequestError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFileRequestsRequests#delete(java.util.List)}.
15 | */ 16 | public class DeleteFileRequestErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/file_requests/delete 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserFileRequestsRequests#delete(java.util.List)}. 25 | */ 26 | public final DeleteFileRequestError errorValue; 27 | 28 | public DeleteFileRequestErrorException(String routeName, String requestId, LocalizedText userMessage, DeleteFileRequestError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/GetThumbnailBatchErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * GetThumbnailBatchError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#getThumbnailBatch(java.util.List)}.
15 | */ 16 | public class GetThumbnailBatchErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/get_thumbnail_batch 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserFilesRequests#getThumbnailBatch(java.util.List)}. 25 | */ 26 | public final GetThumbnailBatchError errorValue; 27 | 28 | public GetThumbnailBatchErrorException(String routeName, String requestId, LocalizedText userMessage, GetThumbnailBatchError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/ListFolderLongpollErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * ListFolderLongpollError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#listFolderLongpoll(String,long)}.
15 | */ 16 | public class ListFolderLongpollErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/list_folder/longpoll 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserFilesRequests#listFolderLongpoll(String,long)}. 25 | */ 26 | public final ListFolderLongpollError errorValue; 27 | 28 | public ListFolderLongpollErrorException(String routeName, String requestId, LocalizedText userMessage, ListFolderLongpollError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/UpdateFolderPolicyErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * UpdateFolderPolicyError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#updateFolderPolicy(String)}.
15 | */ 16 | public class UpdateFolderPolicyErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/update_folder_policy 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#updateFolderPolicy(String)}. 25 | */ 26 | public final UpdateFolderPolicyError errorValue; 27 | 28 | public UpdateFolderPolicyErrorException(String routeName, String requestId, LocalizedText userMessage, UpdateFolderPolicyError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberAppsErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link ListMemberAppsError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#linkedAppsListMemberLinkedApps(String)}.
15 | */ 16 | public class ListMemberAppsErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/linked_apps/list_member_linked_apps 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#linkedAppsListMemberLinkedApps(String)}. 25 | */ 26 | public final ListMemberAppsError errorValue; 27 | 28 | public ListMemberAppsErrorException(String routeName, String requestId, LocalizedText userMessage, ListMemberAppsError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMemberDevicesErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * ListMemberDevicesError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#devicesListMemberDevices(String)}.
15 | */ 16 | public class ListMemberDevicesErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/devices/list_member_devices 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#devicesListMemberDevices(String)}. 25 | */ 26 | public final ListMemberDevicesError errorValue; 27 | 28 | public ListMemberDevicesErrorException(String routeName, String requestId, LocalizedText userMessage, ListMemberDevicesError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeDeviceSessionErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * RevokeDeviceSessionError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#devicesRevokeDeviceSession}.
15 | */ 16 | public class RevokeDeviceSessionErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/devices/revoke_device_session 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#devicesRevokeDeviceSession}. 25 | */ 26 | public final RevokeDeviceSessionError errorValue; 27 | 28 | public RevokeDeviceSessionErrorException(String routeName, String requestId, LocalizedText userMessage, RevokeDeviceSessionError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SharingAllowlistListErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * SharingAllowlistListError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#sharingAllowlistList(long)}.
15 | */ 16 | public class SharingAllowlistListErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/sharing_allowlist/list 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#sharingAllowlistList(long)}. 25 | */ 26 | public final SharingAllowlistListError errorValue; 27 | 28 | public SharingAllowlistListErrorException(String routeName, String requestId, LocalizedText userMessage, SharingAllowlistListError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/AddFolderMemberErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link AddFolderMemberError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#addFolderMember(String,java.util.List)}.
15 | */ 16 | public class AddFolderMemberErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/add_folder_member 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#addFolderMember(String,java.util.List)}. 25 | */ 26 | public final AddFolderMemberError errorValue; 27 | 28 | public AddFolderMemberErrorException(String routeName, String requestId, LocalizedText userMessage, AddFolderMemberError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/GetFileMetadataErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GetFileMetadataError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#getFileMetadata(String,java.util.List)}.
15 | */ 16 | public class GetFileMetadataErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/get_file_metadata 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#getFileMetadata(String,java.util.List)}. 25 | */ 26 | public final GetFileMetadataError errorValue; 27 | 28 | public GetFileMetadataErrorException(String routeName, String requestId, LocalizedText userMessage, GetFileMetadataError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ListMembersAppsErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link ListMembersAppsError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}.
15 | */ 16 | public class ListMembersAppsErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/linked_apps/list_members_linked_apps 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#linkedAppsListMembersLinkedApps(String)}. 25 | */ 26 | public final ListMembersAppsError errorValue; 27 | 28 | public ListMembersAppsErrorException(String routeName, String requestId, LocalizedText userMessage, ListMembersAppsError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/PaperUpdateErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link PaperUpdateError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserFilesRequests#paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long)}. 15 | *
16 | */ 17 | public class PaperUpdateErrorException extends DbxApiException { 18 | // exception for routes: 19 | // 2/files/paper/update 20 | 21 | private static final long serialVersionUID = 0L; 22 | 23 | /** 24 | * The error reported by {@link 25 | * DbxUserFilesRequests#paperUpdate(String,ImportFormat,PaperDocUpdatePolicy,Long)}. 26 | */ 27 | public final PaperUpdateError errorValue; 28 | 29 | public PaperUpdateErrorException(String routeName, String requestId, LocalizedText userMessage, PaperUpdateError errorValue) { 30 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 31 | if (errorValue == null) { 32 | throw new NullPointerException("errorValue"); 33 | } 34 | this.errorValue = errorValue; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/sharing/ListFilesContinueErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.sharing; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * ListFilesContinueError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserSharingRequests#listReceivedFilesContinue(String)}.
15 | */ 16 | public class ListFilesContinueErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/sharing/list_received_files/continue 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxUserSharingRequests#listReceivedFilesContinue(String)}. 25 | */ 26 | public final ListFilesContinueError errorValue; 27 | 28 | public ListFilesContinueErrorException(String routeName, String requestId, LocalizedText userMessage, ListFilesContinueError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/RevokeLinkedAppErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link RevokeLinkedAppError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#linkedAppsRevokeLinkedApp(String,String,boolean)}.
15 | */ 16 | public class RevokeLinkedAppErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/linked_apps/revoke_linked_app 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#linkedAppsRevokeLinkedApp(String,String,boolean)}. 25 | */ 26 | public final RevokeLinkedAppError errorValue; 27 | 28 | public RevokeLinkedAppErrorException(String routeName, String requestId, LocalizedText userMessage, RevokeLinkedAppError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/SetCustomQuotaErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link SetCustomQuotaError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#memberSpaceLimitsSetCustomQuota(java.util.List)}.
15 | */ 16 | public class SetCustomQuotaErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/member_space_limits/set_custom_quota 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#memberSpaceLimitsSetCustomQuota(java.util.List)}. 25 | */ 26 | public final SetCustomQuotaError errorValue; 27 | 28 | public SetCustomQuotaErrorException(String routeName, String requestId, LocalizedText userMessage, SetCustomQuotaError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/teamlog/GetTeamEventsContinueErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.teamlog; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * GetTeamEventsContinueError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamLogRequests#getEventsContinue(String)}.
15 | */ 16 | public class GetTeamEventsContinueErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team_log/get_events/continue 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamLogRequests#getEventsContinue(String)}. 25 | */ 26 | public final GetTeamEventsContinueError errorValue; 27 | 28 | public GetTeamEventsContinueErrorException(String routeName, String requestId, LocalizedText userMessage, GetTeamEventsContinueError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/UploadErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.files; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link UploadError} error. 11 | * 12 | *This exception is raised by {@link 13 | * DbxUserFilesRequests#alphaUpload(String)} and {@link 14 | * DbxUserFilesRequests#upload(String)}.
15 | */ 16 | public class UploadErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/files/alpha/upload 19 | // 2/files/upload 20 | 21 | private static final long serialVersionUID = 0L; 22 | 23 | /** 24 | * The error reported by {@link DbxUserFilesRequests#alphaUpload(String)} 25 | * and {@link DbxUserFilesRequests#upload(String)}. 26 | */ 27 | public final UploadError errorValue; 28 | 29 | public UploadErrorException(String routeName, String requestId, LocalizedText userMessage, UploadError errorValue) { 30 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 31 | if (errorValue == null) { 32 | throw new NullPointerException("errorValue"); 33 | } 34 | this.errorValue = errorValue; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/AddSecondaryEmailsErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * AddSecondaryEmailsError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#membersSecondaryEmailsAdd(java.util.List)}.
15 | */ 16 | public class AddSecondaryEmailsErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/members/secondary_emails/add 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#membersSecondaryEmailsAdd(java.util.List)}. 25 | */ 26 | public final AddSecondaryEmailsError errorValue; 27 | 28 | public AddSecondaryEmailsErrorException(String routeName, String requestId, LocalizedText userMessage, AddSecondaryEmailsError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/FeaturesGetValuesBatchErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * FeaturesGetValuesBatchError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#featuresGetValues(java.util.List)}.
15 | */ 16 | public class FeaturesGetValuesBatchErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/features/get_values 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#featuresGetValues(java.util.List)}. 25 | */ 26 | public final FeaturesGetValuesBatchError errorValue; 27 | 28 | public FeaturesGetValuesBatchErrorException(String routeName, String requestId, LocalizedText userMessage, FeaturesGetValuesBatchError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsListPoliciesErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * LegalHoldsListPoliciesError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#legalHoldsListPolicies(boolean)}.
15 | */ 16 | public class LegalHoldsListPoliciesErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/legal_holds/list_policies 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#legalHoldsListPolicies(boolean)}. 25 | */ 26 | public final LegalHoldsListPoliciesError errorValue; 27 | 28 | public LegalHoldsListPoliciesErrorException(String routeName, String requestId, LocalizedText userMessage, LegalHoldsListPoliciesError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyUpdateErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * LegalHoldsPolicyUpdateError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#legalHoldsUpdatePolicy(String)}.
15 | */ 16 | public class LegalHoldsPolicyUpdateErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/legal_holds/update_policy 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#legalHoldsUpdatePolicy(String)}. 25 | */ 26 | public final LegalHoldsPolicyUpdateError errorValue; 27 | 28 | public LegalHoldsPolicyUpdateErrorException(String routeName, String requestId, LocalizedText userMessage, LegalHoldsPolicyUpdateError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/TeamFolderListContinueErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * TeamFolderListContinueError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#teamFolderListContinue(String)}.
15 | */ 16 | public class TeamFolderListContinueErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/team_folder/list/continue 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#teamFolderListContinue(String)}. 25 | */ 26 | public final TeamFolderListContinueError errorValue; 27 | 28 | public TeamFolderListContinueErrorException(String routeName, String requestId, LocalizedText userMessage, TeamFolderListContinueError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/paper/PaperDocUpdateErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.paper; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link PaperDocUpdateError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxUserPaperRequests#docsUpdate(String,PaperDocUpdatePolicy,long,ImportFormat)}. 15 | *
16 | */ 17 | public class PaperDocUpdateErrorException extends DbxApiException { 18 | // exception for routes: 19 | // 2/paper/docs/update 20 | 21 | private static final long serialVersionUID = 0L; 22 | 23 | /** 24 | * The error reported by {@link 25 | * DbxUserPaperRequests#docsUpdate(String,PaperDocUpdatePolicy,long,ImportFormat)}. 26 | */ 27 | public final PaperDocUpdateError errorValue; 28 | 29 | public PaperDocUpdateErrorException(String routeName, String requestId, LocalizedText userMessage, PaperDocUpdateError errorValue) { 30 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 31 | if (errorValue == null) { 32 | throw new NullPointerException("errorValue"); 33 | } 34 | this.errorValue = errorValue; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/ExcludedUsersListErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * ExcludedUsersListError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersList(long)}.
15 | */ 16 | public class ExcludedUsersListErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/member_space_limits/excluded_users/list 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#memberSpaceLimitsExcludedUsersList(long)}. 25 | */ 26 | public final ExcludedUsersListError errorValue; 27 | 28 | public ExcludedUsersListErrorException(String routeName, String requestId, LocalizedText userMessage, ExcludedUsersListError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/GroupMembersAddErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link GroupMembersAddError} 11 | * error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,java.util.List,boolean)}. 15 | *
16 | */ 17 | public class GroupMembersAddErrorException extends DbxApiException { 18 | // exception for routes: 19 | // 2/team/groups/members/add 20 | 21 | private static final long serialVersionUID = 0L; 22 | 23 | /** 24 | * The error reported by {@link 25 | * DbxTeamTeamRequests#groupsMembersAdd(GroupSelector,java.util.List,boolean)}. 26 | */ 27 | public final GroupMembersAddError errorValue; 28 | 29 | public GroupMembersAddErrorException(String routeName, String requestId, LocalizedText userMessage, GroupMembersAddError errorValue) { 30 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 31 | if (errorValue == null) { 32 | throw new NullPointerException("errorValue"); 33 | } 34 | this.errorValue = errorValue; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/LegalHoldsPolicyReleaseErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link 11 | * LegalHoldsPolicyReleaseError} error. 12 | * 13 | *This exception is raised by {@link 14 | * DbxTeamTeamRequests#legalHoldsReleasePolicy(String)}.
15 | */ 16 | public class LegalHoldsPolicyReleaseErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/legal_holds/release_policy 19 | 20 | private static final long serialVersionUID = 0L; 21 | 22 | /** 23 | * The error reported by {@link 24 | * DbxTeamTeamRequests#legalHoldsReleasePolicy(String)}. 25 | */ 26 | public final LegalHoldsPolicyReleaseError errorValue; 27 | 28 | public LegalHoldsPolicyReleaseErrorException(String routeName, String requestId, LocalizedText userMessage, LegalHoldsPolicyReleaseError errorValue) { 29 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 30 | if (errorValue == null) { 31 | throw new NullPointerException("errorValue"); 32 | } 33 | this.errorValue = errorValue; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /core/src/main/java/com/dropbox/core/v1/DbxThumbnailSize.java: -------------------------------------------------------------------------------- 1 | package com.dropbox.core.v1; 2 | 3 | /** 4 | * Thumbnail size presets, to be used with {@link DbxClientV1#getThumbnail}. 5 | */ 6 | public class DbxThumbnailSize 7 | { 8 | public final String ident; 9 | public final int width; 10 | public final int height; 11 | 12 | public DbxThumbnailSize(String ident, int width, int height) 13 | { 14 | this.ident = ident; 15 | this.width = width; 16 | this.height = height; 17 | } 18 | 19 | public String toString() 20 | { 21 | return "(" + ident + " " + width + "x" + height + ")"; 22 | } 23 | 24 | /** 25 | * 32x32 pixels. 26 | */ 27 | public static final DbxThumbnailSize w32h32 = new DbxThumbnailSize("xs", 32, 32); 28 | 29 | /** 30 | * 64x64 pixels. 31 | */ 32 | public static final DbxThumbnailSize w64h64 = new DbxThumbnailSize("s", 64, 64); 33 | 34 | /** 35 | * 128x128 pixels. 36 | */ 37 | public static final DbxThumbnailSize w128h128 = new DbxThumbnailSize("m", 128, 128); 38 | 39 | /** 40 | * 640x480 pixels. 41 | */ 42 | public static final DbxThumbnailSize w640h480 = new DbxThumbnailSize("l", 640, 480); 43 | 44 | /** 45 | * 1024x768 pixels. 46 | */ 47 | public static final DbxThumbnailSize w1024h768 = new DbxThumbnailSize("xl", 1024, 768); 48 | } 49 | -------------------------------------------------------------------------------- /core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/MembersListErrorException.java: -------------------------------------------------------------------------------- 1 | /* DO NOT EDIT */ 2 | /* This file was generated by Stone */ 3 | 4 | package com.dropbox.core.v2.team; 5 | 6 | import com.dropbox.core.DbxApiException; 7 | import com.dropbox.core.LocalizedText; 8 | 9 | /** 10 | * Exception thrown when the server responds with a {@link MembersListError} 11 | * error. 12 | * 13 | *This exception is raised by {@link DbxTeamTeamRequests#membersList} and 14 | * {@link DbxTeamTeamRequests#membersListV2}.
15 | */ 16 | public class MembersListErrorException extends DbxApiException { 17 | // exception for routes: 18 | // 2/team/members/list 19 | // 2/team/members/list_v2 20 | 21 | private static final long serialVersionUID = 0L; 22 | 23 | /** 24 | * The error reported by {@link DbxTeamTeamRequests#membersList} and {@link 25 | * DbxTeamTeamRequests#membersListV2}. 26 | */ 27 | public final MembersListError errorValue; 28 | 29 | public MembersListErrorException(String routeName, String requestId, LocalizedText userMessage, MembersListError errorValue) { 30 | super(requestId, userMessage, buildMessage(routeName, userMessage, errorValue)); 31 | if (errorValue == null) { 32 | throw new NullPointerException("errorValue"); 33 | } 34 | this.errorValue = errorValue; 35 | } 36 | } 37 | --------------------------------------------------------------------------------