# InvalidPathException

> The exception that is thrown when trying to resolve an invalid path.

## Definition

* **Type:** Class
* **Namespace:** [Unity.Properties](/engine/6000.6/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule
* **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 InvalidPathException : Exception, ISerializable
```

## Constructors

| Constructor                                                                                                                                                                    | Description                                                                                                                                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [InvalidPathException(System.String)](/engine/6000.6/script-reference/unity/properties/invalidpathexception/ctor.md#invalidpathexception\(string\))                            | Initializes a new instance of the [InvalidPathException](/engine/6000.6/script-reference/unity/properties/invalidpathexception.md) class with a specified path.                                                                            |
| [InvalidPathException(System.String,System.Exception)](/engine/6000.6/script-reference/unity/properties/invalidpathexception/ctor.md#invalidpathexception\(string-exception\)) | Initializes a new instance of the [InvalidPathException](/engine/6000.6/script-reference/unity/properties/invalidpathexception.md) class with a specified type and a reference to the inner exception that is the cause of this 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)
