-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrapped continuation token with Exception when recursive acl call is … (
- Loading branch information
1 parent
44743b1
commit e266b8c
Showing
12 changed files
with
1,658 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...rc/main/java/com/azure/storage/file/datalake/models/DataLakeAclChangeFailedException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.storage.file.datalake.models; | ||
|
||
/** | ||
* An exception thrown when an operation is interrupted and can be continued later on. | ||
*/ | ||
public class DataLakeAclChangeFailedException extends RuntimeException { | ||
|
||
private final String continuationToken; | ||
|
||
/** | ||
* Initializes a new instance of DataLakeAclChangeFailedException with a specified error message, and a reference | ||
* to the inner exception that is the cause of this exception. | ||
* | ||
* @param message The message that describes the error. | ||
* @param e The exception thrown. | ||
* @param continuationToken The continuation token returned from the previous successful response. | ||
*/ | ||
public DataLakeAclChangeFailedException(String message, Exception e, String continuationToken) { | ||
super(message, e); | ||
this.continuationToken = continuationToken; | ||
} | ||
|
||
/** | ||
* Initializes a new instance of DataLakeAclChangeFailedException with a specified error message, HTTP status code, | ||
* error code, and a reference to the inner exception that is the cause of this exception. | ||
* | ||
* @param message The message that describes the error. | ||
* @param e The exception thrown from the failed request. | ||
* @param continuationToken The continuation token returned from the previous successful response. | ||
*/ | ||
public DataLakeAclChangeFailedException(String message, DataLakeStorageException e, String continuationToken) { | ||
super(message, e); | ||
this.continuationToken = continuationToken; | ||
} | ||
|
||
/** | ||
* @return the continuation token to resume a datalake recursive acl function. | ||
*/ | ||
public String getContinuationToken() { | ||
return continuationToken; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.