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

# Class StateCopyException

> **Inheritance:** `System.Object` -> `System.Exception` -> [Aurigma.DesignAtoms.Exceptions.StateService.StateServiceException](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Exceptions.StateService/StateServiceException.md) -> StateCopyException

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

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

```csharp title="Syntax"
public class StateCopyException : StateServiceException, ISerializable, _Exception
```

## Implements

* `System.Runtime.Serialization.ISerializable`
* `System.Runtime.InteropServices._Exception`

## Inherited Members

* [Aurigma.DesignAtoms.Exceptions.StateService.StateServiceException.UserId](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Exceptions.StateService/StateServiceException.md#userid)
* [Aurigma.DesignAtoms.Exceptions.StateService.StateServiceException.StateId](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Exceptions.StateService/StateServiceException.md#stateid)
* `System.Exception.GetBaseException`
* `System.Exception.ToString`
* `System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)`
* `System.Exception.GetType`
* `System.Exception.Message`
* `System.Exception.Data`
* `System.Exception.InnerException`
* `System.Exception.TargetSite`
* `System.Exception.StackTrace`
* `System.Exception.HelpLink`
* `System.Exception.Source`
* `System.Exception.HResult`
* `System.Exception.SerializeObjectState`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.MemberwiseClone`

## Constructors

### StateCopyException

```csharp
public StateCopyException(string message, Exception innerException, string sourceStateId, string sourceUserId, string targetStateId, string targetUserId, bool overwrite)
```

### StateCopyException

```csharp
public StateCopyException(string message, string sourceStateId, string sourceUserId, string targetStateId, string targetUserId, bool overwrite)
```

## Properties

### TargetStateId

```csharp
public string TargetStateId { get; }
```

### TargetUserId

```csharp
public string TargetUserId { get; }
```

### Overwrite

```csharp
public bool Overwrite { get; }
```
