# AssemblyDefinitionException

> An exception throw for Assembly Definition Files errors.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Compilation](/engine/6000.7/script-reference/unityeditor/compilation.md)
* **Assembly:** UnityEditor.CoreModule
* **Inherits from:** [Exception](https://learn.microsoft.com/dotnet/api/system.exception)
* **Implements:** [ISerializable](https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable)

```csharp
public class AssemblyDefinitionException : Exception, ISerializable
```

## Constructors

| Constructor                                                                                                                                                 | Description  |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| [AssemblyDefinitionException(System.String,System.String\[\])](/engine/6000.7/script-reference/unityeditor/compilation/assemblydefinitionexception/ctor.md) | Constructor. |

## Properties

| Property                                                                                                      | Description                                                            |
| ------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [filePaths](/engine/6000.7/script-reference/unityeditor/compilation/assemblydefinitionexception/filepaths.md) | File paths of the assembly definition files that caused the exception. |

## Inheritance

**Inherited Members:**

* [Exception.GetBaseException()](https://learn.microsoft.com/dotnet/api/system.exception.getbaseexception)
* [Exception.GetObjectData(SerializationInfo, StreamingContext)](https://learn.microsoft.com/dotnet/api/system.exception.getobjectdata)
* [Exception.ToString()](https://learn.microsoft.com/dotnet/api/system.exception.tostring)
* [Exception.GetType()](https://learn.microsoft.com/dotnet/api/system.exception.gettype)
* [Exception.TargetSite()](https://learn.microsoft.com/dotnet/api/system.exception.targetsite)
* [Exception.Message()](https://learn.microsoft.com/dotnet/api/system.exception.message)
* [Exception.Data()](https://learn.microsoft.com/dotnet/api/system.exception.data)
* [Exception.InnerException()](https://learn.microsoft.com/dotnet/api/system.exception.innerexception)
* [Exception.HelpLink()](https://learn.microsoft.com/dotnet/api/system.exception.helplink)
* [Exception.Source()](https://learn.microsoft.com/dotnet/api/system.exception.source)
* [Exception.HResult()](https://learn.microsoft.com/dotnet/api/system.exception.hresult)
* [Exception.StackTrace()](https://learn.microsoft.com/dotnet/api/system.exception.stacktrace)
* [Exception.SerializeObjectState()](https://learn.microsoft.com/dotnet/api/system.exception.serializeobjectstate)
