> ## Documentation Index
> Fetch the complete documentation index at: https://klef.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ConnectorException

> The failure a connector raises when a call does not complete.

```csharp
public sealed class ConnectorException : Exception, ISerializable
```

**Extends:** `Exception`

**Implements:** `ISerializable`

## Constructors

```csharp
public ConnectorException(ConnectorFailure failure, string? externalId = null, int? statusCode = null, TimeSpan? retryAfter = null, Exception? inner = null)
```

### Parameters

**failure** `ConnectorFailure` *required*

**externalId** `string`

**statusCode** `int?`

**retryAfter** `TimeSpan?`

**inner** `Exception`

## Properties

**ExternalId** `string`

**Failure** `ConnectorFailure` *required*

**RetryAfter** `TimeSpan?`

How long the vendor asked to be left alone for, when it asked.

**StatusCode** `int?`

What the vendor answered with, when it answered at all.

## Methods

### ObjectExists()

```csharp
public static ConnectorException ObjectExists(string objectKey, string id)
```

The failure a create raises when the vendor already holds the object.

#### Parameters

**objectKey** `string` *required*

The manifest object's key.

**id** `string` *required*

The vendor's id for the object it holds.

#### Returns

`ConnectorException`

### ObjectGone()

```csharp
public static ConnectorException ObjectGone(string objectKey, string id, Exception? inner = null, int? statusCode = null)
```

The failure a call raises when the object it names does not exist.

#### Parameters

**objectKey** `string` *required*

The manifest object's key.

**id** `string` *required*

The vendor's id for the object.

**inner** `Exception`

What the vendor raised.

**statusCode** `int?`

What the vendor answered with.

#### Returns

`ConnectorException`

### WithUpstream()

```csharp
public ConnectorException WithUpstream(string upstream)
```

This failure, saying what the vendor said in `upstream`.

#### Parameters

**upstream** `string` *required*

#### Returns

`ConnectorException`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.