public sealed class UploadValidationException : IOException, ISerializable, _ExceptionException thrown when an upload failed validation.
Inheritance
System.Object > System.Exception > System.SystemException > System.IO.IOException > UploadValidationExceptionImplements
System.Runtime.Serialization.ISerializable, System.Runtime.InteropServices._ExceptionNamespace
Google.Cloud.Storage.V1Assembly
Google.Cloud.Storage.V1.dll
Constructors
UploadValidationException(String, Object, AggregateException)
public UploadValidationException(string clientSideHash, Object uploadedObject, AggregateException additionalFailures)Creates a new exception.
| Parameters | |
|---|---|
| Name | Description |
clientSideHash |
System.StringThe hash of the uploaded data, as computed at the client. Must not be null. |
uploadedObject |
Google.Apis.Storage.v1.Data.ObjectThe object created by Google Cloud Storage. Must not be null. |
additionalFailures |
System.AggregateExceptionAny additional failures encountered while handling the error. May be null; if non-null, must contain at least one exception. |
Properties
AdditionalFailures
public AggregateException AdditionalFailures { get; }A collection of additional failures following on from this one, if any. For example, if the validation mode indicates that on failure the file should be deleted, but the deletion fails, that exception would be present here. This property is either null, or returns an System.AggregateException containing one or more exceptions; it will never return an empty System.AggregateException.
| Property Value | |
|---|---|
| Type | Description |
System.AggregateException |
|
ClientSideHash
public string ClientSideHash { get; }The hash computed locally, in base64.
| Property Value | |
|---|---|
| Type | Description |
System.String |
|
UploadedObject
public Object UploadedObject { get; }The uploaded object.
| Property Value | |
|---|---|
| Type | Description |
Google.Apis.Storage.v1.Data.Object |
|