# InvalidPathException

> Initializes a new instance of the InvalidPathException class with a specified path.

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.Properties](/engine/6000.7/script-reference/unity/properties.md)
* **Assembly:** UnityEngine.PropertiesModule

## InvalidPathException(string)

Initializes a new instance of the [InvalidPathException](/engine/6000.7/script-reference/unity/properties/invalidpathexception.md) class with a specified path.

```csharp
public InvalidPathException(string message)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The exception message.

## InvalidPathException(string, Exception)

Initializes a new instance of the [InvalidPathException](/engine/6000.7/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.

```csharp
public InvalidPathException(string message, Exception inner)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The exception message.**** (\[Exception]\(https\://learn.microsoft.com/dotnet/api/system.exception)): The inner exception reference.
