Skip to main content

SecretSweepDumpRestoreException

Namespace: Meshmakers.Octo.Sdk.ServiceClient.BotServices

Thrown by IBotServicesClient.RestoreSecretSweepDumpAsync(String, String, Boolean) when bot services refuses the restore with 400, 404 or 409 (AB#5559). The message is fixed per SecretSweepDumpRestoreException.Reason and never contains data from the response body.

public class SecretSweepDumpRestoreException : ServiceClientResultException, ISerializable

Inheritance Object → Exception → ServiceClientResultException → SecretSweepDumpRestoreException
Implements ISerializable

Properties​

Reason​

Why the restore was refused.

public SecretSweepDumpRestoreFailure Reason { get; }

Property Value​

SecretSweepDumpRestoreFailure

HttpStatusCode​

Returns the status code

public HttpStatusCode HttpStatusCode { get; }

Property Value​

HttpStatusCode

TargetSite​

public MethodBase TargetSite { get; }

Property Value​

MethodBase

Message​

public string Message { get; }

Property Value​

String

Data​

public IDictionary Data { get; }

Property Value​

IDictionary

InnerException​

public Exception InnerException { get; }

Property Value​

Exception

public string HelpLink { get; set; }

Property Value​

String

Source​

public string Source { get; set; }

Property Value​

String

HResult​

public int HResult { get; set; }

Property Value​

Int32

StackTrace​

public string StackTrace { get; }

Property Value​

String

Constructors​

SecretSweepDumpRestoreException(SecretSweepDumpRestoreFailure, HttpStatusCode)​

Constructor

public SecretSweepDumpRestoreException(SecretSweepDumpRestoreFailure reason, HttpStatusCode httpStatusCode)

Parameters​

reason SecretSweepDumpRestoreFailure
Why the restore was refused.

httpStatusCode HttpStatusCode
The HTTP status code received.