Enhance the exception for body stream rewind (#1291)

This commit is contained in:
Victor Vazquez 2021-01-08 15:01:19 -08:00 committed by GitHub
parent 31f3a99ce0
commit 57b78dc0ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,10 @@ namespace Azure { namespace Core { namespace Http {
*/
virtual void Rewind()
{
throw "Not Implemented"; // TODO: Replace with best practice as defined by guideline
// Exception is not meant to be caught. This is rather an indication of a bad program that
// needs to be updated. This is the reason of using `throw` alone.
throw "The upload BodyStream doesn't support Rewind which is required to guarantee fault "
"tolerance when retrying the operation.";
};
/**