---
title: "Class ExceptionFactory | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Exceptions/ExceptionFactory/"
---

# Class ExceptionFactory

> **Inheritance:** `System.Object` -> ExceptionFactory

###### **Namespace**: [Aurigma.DesignAtoms.Exceptions](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Exceptions.md)

###### **Assembly**: Aurigma.DesignAtoms.Model.dll

```csharp title="Syntax"
public static class ExceptionFactory
```

## Inherited Members

* `System.Object.ToString`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Methods

### ItemBelongsCollection

```csharp
public static ArgumentException ItemBelongsCollection()
```

##### Returns

`System.ArgumentException`

### CanvasInLayerCollectionIsNull

```csharp
public static ArgumentException CanvasInLayerCollectionIsNull()
```

##### Returns

`System.ArgumentException`

### LayerInObjectCollectionIsNull

```csharp
public static ArgumentNullException LayerInObjectCollectionIsNull()
```

##### Returns

`System.ArgumentNullException`

### CollectionSetterNotSupported

```csharp
public static NotSupportedException CollectionSetterNotSupported()
```

##### Returns

`System.NotSupportedException`

### BadRequest

```csharp
public static WebException BadRequest(string url, Exception ex)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *url* |  |
| `System.Exception` | *ex* |  |

##### Returns

`System.Net.WebException`

### SourceFormat

```csharp
public static InvalidOperationException SourceFormat(Exception ex)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Exception` | *ex* |  |

##### Returns

`System.InvalidOperationException`

### DownloadDeny

```csharp
public static ApplicationException DownloadDeny()
```

##### Returns

`System.ApplicationException`

### ImageFileNotFound

```csharp
public static FileNotFoundException ImageFileNotFound(string fileName)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *fileName* |  |

##### Returns

`System.IO.FileNotFoundException`

### CanNotDownloadImage

```csharp
public static ApplicationException CanNotDownloadImage(string url, Exception innerException)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *url* |  |
| `System.Exception` | *innerException* |  |

##### Returns

`System.ApplicationException`

### CanNotDrawImageByUrl

```csharp
public static InvalidOperationException CanNotDrawImageByUrl()
```

##### Returns

`System.InvalidOperationException`

### NotSupportedException

```csharp
public static NotSupportedException NotSupportedException()
```

##### Returns

`System.NotSupportedException`

### ArgumentNullException

```csharp
public static ArgumentNullException ArgumentNullException()
```

##### Returns

`System.ArgumentNullException`

### ArgumentOutOfRangeException

```csharp
public static ArgumentOutOfRangeException ArgumentOutOfRangeException(string paramName)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *paramName* |  |

##### Returns

`System.ArgumentOutOfRangeException`

### BlendModeNotSupported

```csharp
public static BlendModeNotSupportedException BlendModeNotSupported(BlendMode psdBlendMode)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| [Aurigma.DesignAtoms.Model.BlendMode](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Model/BlendMode.md) | *psdBlendMode* |  |

##### Returns

[Aurigma.DesignAtoms.Exceptions.BlendModeNotSupportedException](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Exceptions/BlendModeNotSupportedException.md)
