public override CosmosException Visit(MalformedContinuationTokenException malformedContinuationTokenException)
 {
     return(CosmosExceptionFactory.CreateBadRequestException(
                message: malformedContinuationTokenException.Message,
                headers: new Headers(),
                stackTrace: malformedContinuationTokenException.StackTrace,
                innerException: malformedContinuationTokenException));
 }
            public override CosmosException Visit(MalformedContinuationTokenException malformedContinuationTokenException, ITrace trace)
            {
                Headers headers = new Headers()
                {
                    SubStatusCode = Documents.SubStatusCodes.MalformedContinuationToken
                };

                return(CosmosExceptionFactory.CreateBadRequestException(
                           message: malformedContinuationTokenException.Message,
                           headers: headers,
                           stackTrace: malformedContinuationTokenException.StackTrace,
                           innerException: malformedContinuationTokenException,
                           trace: trace));
            }
示例#3
0
 public override CosmosException Visit(MalformedContinuationTokenException malformedContinuationTokenException)
 {
     return(new BadRequestException(
                $"{nameof(BadRequestException)} due to {nameof(MalformedContinuationTokenException)}",
                malformedContinuationTokenException));
 }
示例#4
0
 public abstract TResult Visit(MalformedContinuationTokenException malformedContinuationTokenException);