---
title: "Exception | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-js/reference/design-atoms-model/Exception/"
---

# Exception

> - [`Exception`](#exception)

## Classes

### ArgumentException

#### Extends

#### Extended by

- [`ArgumentNullException`](#argumentnullexception)

#### Constructors

##### Constructor

```ts
new ArgumentException(message?): ArgumentException;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `message?` | `string` |

###### Returns

[`ArgumentException`](#argumentexception)

###### Overrides

[`Exception`](#exception).[`constructor`](#constructor-2)

#### Properties

##### innerException

```ts
innerException: Exception | Error;
```

###### Inherited from

[`Exception`](#exception).[`innerException`](#innerexception-2)

##### message

```ts
message: string;
```

###### Inherited from

[`Exception`](#exception).[`message`](#message-2)

##### name

```ts
name: string = "ArgumentException";
```

###### Overrides

[`Exception`](#exception).[`name`](#name-2)

##### stack?

```ts
optional stack?: string;
```

###### Inherited from

[`Exception`](#exception).[`stack`](#stack-2)

#### Methods

##### toJSON()

```ts
toJSON(): object;
```

###### Returns

`object`

###### innerException

```ts
innerException: Exception | Error;
```

###### message

```ts
message: string;
```

###### name

```ts
name: string;
```

###### Inherited from

[`Exception`](#exception).[`toJSON`](#tojson-2)

##### toString()

```ts
toString(): string;
```

Returns a string representation of an object.

###### Returns

`string`

###### Inherited from

[`Exception`](#exception).[`toString`](#tostring-2)

***

### ArgumentNullException

#### Extends

- [`ArgumentException`](#argumentexception)

#### Constructors

##### Constructor

```ts
new ArgumentNullException(message?): ArgumentNullException;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `message?` | `string` |

###### Returns

[`ArgumentNullException`](#argumentnullexception)

###### Overrides

[`ArgumentException`](#argumentexception).[`constructor`](#constructor)

#### Properties

##### innerException

```ts
innerException: Exception | Error;
```

###### Inherited from

[`ArgumentException`](#argumentexception).[`innerException`](#innerexception)

##### message

```ts
message: string;
```

###### Inherited from

[`ArgumentException`](#argumentexception).[`message`](#message)

##### name

```ts
name: string = "ArgumentNullException";
```

###### Overrides

[`ArgumentException`](#argumentexception).[`name`](#name)

##### stack?

```ts
optional stack?: string;
```

###### Inherited from

[`ArgumentException`](#argumentexception).[`stack`](#stack)

#### Methods

##### toJSON()

```ts
toJSON(): object;
```

###### Returns

`object`

###### innerException

```ts
innerException: Exception | Error;
```

###### message

```ts
message: string;
```

###### name

```ts
name: string;
```

###### Inherited from

[`ArgumentException`](#argumentexception).[`toJSON`](#tojson)

##### toString()

```ts
toString(): string;
```

Returns a string representation of an object.

###### Returns

`string`

###### Inherited from

[`ArgumentException`](#argumentexception).[`toString`](#tostring)

***

### Exception

#### Extends

- `Error`

#### Extended by

- [`NotImplementedException`](#notimplementedexception)
- [`ArgumentException`](#argumentexception)
- [`OutOfRangeException`](#outofrangeexception)
- [`InvalidOperationException`](#invalidoperationexception)
- [`UnexpectedDataException`](#unexpecteddataexception)

#### Constructors

##### Constructor

```ts
new Exception(message?): Exception;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `message?` | `string` |

###### Returns

[`Exception`](#exception)

###### Overrides

```ts
Error.constructor
```

#### Properties

##### innerException

```ts
innerException: Exception | Error;
```

##### message

```ts
message: string;
```

###### Inherited from

```ts
Error.message
```

##### name

```ts
name: string = "CustomersCanvasException";
```

###### Overrides

```ts
Error.name
```

##### stack?

```ts
optional stack?: string;
```

###### Inherited from

```ts
Error.stack
```

#### Methods

##### toJSON()

```ts
toJSON(): object;
```

###### Returns

`object`

###### innerException

```ts
innerException: Exception | Error;
```

###### message

```ts
message: string;
```

###### name

```ts
name: string;
```

##### toString()

```ts
toString(): string;
```

Returns a string representation of an object.

###### Returns

`string`

***

### InvalidOperationException

#### Extends

- [`Exception`](#exception)

#### Constructors

##### Constructor

```ts
new InvalidOperationException(message?): InvalidOperationException;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `message?` | `string` |

###### Returns

[`InvalidOperationException`](#invalidoperationexception)

###### Overrides

[`Exception`](#exception).[`constructor`](#constructor-2)

#### Properties

##### innerException

```ts
innerException: Exception | Error;
```

###### Inherited from

[`Exception`](#exception).[`innerException`](#innerexception-2)

##### message

```ts
message: string;
```

###### Inherited from

[`Exception`](#exception).[`message`](#message-2)

##### name

```ts
name: string = "InvalidOperationException";
```

###### Overrides

[`Exception`](#exception).[`name`](#name-2)

##### stack?

```ts
optional stack?: string;
```

###### Inherited from

[`Exception`](#exception).[`stack`](#stack-2)

#### Methods

##### toJSON()

```ts
toJSON(): object;
```

###### Returns

`object`

###### innerException

```ts
innerException: Exception | Error;
```

###### message

```ts
message: string;
```

###### name

```ts
name: string;
```

###### Inherited from

[`Exception`](#exception).[`toJSON`](#tojson-2)

##### toString()

```ts
toString(): string;
```

Returns a string representation of an object.

###### Returns

`string`

###### Inherited from

[`Exception`](#exception).[`toString`](#tostring-2)

***

### NotImplementedException

#### Extends

- [`Exception`](#exception)

#### Constructors

##### Constructor

```ts
new NotImplementedException(message?): NotImplementedException;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `message?` | `string` |

###### Returns

[`NotImplementedException`](#notimplementedexception)

###### Overrides

[`Exception`](#exception).[`constructor`](#constructor-2)

#### Properties

##### innerException

```ts
innerException: Exception | Error;
```

###### Inherited from

[`Exception`](#exception).[`innerException`](#innerexception-2)

##### message

```ts
message: string;
```

###### Inherited from

[`Exception`](#exception).[`message`](#message-2)

##### name

```ts
name: string = "NotImplementedException";
```

###### Overrides

[`Exception`](#exception).[`name`](#name-2)

##### stack?

```ts
optional stack?: string;
```

###### Inherited from

[`Exception`](#exception).[`stack`](#stack-2)

#### Methods

##### toJSON()

```ts
toJSON(): object;
```

###### Returns

`object`

###### innerException

```ts
innerException: Exception | Error;
```

###### message

```ts
message: string;
```

###### name

```ts
name: string;
```

###### Inherited from

[`Exception`](#exception).[`toJSON`](#tojson-2)

##### toString()

```ts
toString(): string;
```

Returns a string representation of an object.

###### Returns

`string`

###### Inherited from

[`Exception`](#exception).[`toString`](#tostring-2)

***

### OutOfRangeException

#### Extends

- [`Exception`](#exception)

#### Constructors

##### Constructor

```ts
new OutOfRangeException(message?): OutOfRangeException;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `message?` | `string` |

###### Returns

[`OutOfRangeException`](#outofrangeexception)

###### Overrides

[`Exception`](#exception).[`constructor`](#constructor-2)

#### Properties

##### innerException

```ts
innerException: Exception | Error;
```

###### Inherited from

[`Exception`](#exception).[`innerException`](#innerexception-2)

##### message

```ts
message: string;
```

###### Inherited from

[`Exception`](#exception).[`message`](#message-2)

##### name

```ts
name: string = "OutOfRangeException";
```

###### Overrides

[`Exception`](#exception).[`name`](#name-2)

##### stack?

```ts
optional stack?: string;
```

###### Inherited from

[`Exception`](#exception).[`stack`](#stack-2)

#### Methods

##### toJSON()

```ts
toJSON(): object;
```

###### Returns

`object`

###### innerException

```ts
innerException: Exception | Error;
```

###### message

```ts
message: string;
```

###### name

```ts
name: string;
```

###### Inherited from

[`Exception`](#exception).[`toJSON`](#tojson-2)

##### toString()

```ts
toString(): string;
```

Returns a string representation of an object.

###### Returns

`string`

###### Inherited from

[`Exception`](#exception).[`toString`](#tostring-2)

***

### UnexpectedDataException

This exception is thrown when unexpected data is encountered.

#### Extends

- [`Exception`](#exception)

#### Constructors

##### Constructor

```ts
new UnexpectedDataException(message?): UnexpectedDataException;
```

###### Parameters

| Parameter | Type |
| ------ | ------ |
| `message?` | `string` |

###### Returns

[`UnexpectedDataException`](#unexpecteddataexception)

###### Overrides

[`Exception`](#exception).[`constructor`](#constructor-2)

#### Properties

##### innerException

```ts
innerException: Exception | Error;
```

###### Inherited from

[`Exception`](#exception).[`innerException`](#innerexception-2)

##### message

```ts
message: string;
```

###### Inherited from

[`Exception`](#exception).[`message`](#message-2)

##### name

```ts
name: string = "UnexpectedDataException";
```

###### Overrides

[`Exception`](#exception).[`name`](#name-2)

##### stack?

```ts
optional stack?: string;
```

###### Inherited from

[`Exception`](#exception).[`stack`](#stack-2)

#### Methods

##### toJSON()

```ts
toJSON(): object;
```

###### Returns

`object`

###### innerException

```ts
innerException: Exception | Error;
```

###### message

```ts
message: string;
```

###### name

```ts
name: string;
```

###### Inherited from

[`Exception`](#exception).[`toJSON`](#tojson-2)

##### toString()

```ts
toString(): string;
```

Returns a string representation of an object.

###### Returns

`string`

###### Inherited from

[`Exception`](#exception).[`toString`](#tostring-2)
