# MissingPropertyBagException

> Initializes a new instance of the MissingPropertyBagException class with a specified type.

## Definition

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

## MissingPropertyBagException(Type)

Initializes a new instance of the [MissingPropertyBagException](/engine/6000.7/script-reference/unity/properties/missingpropertybagexception.md) class with a specified type.

```csharp
public MissingPropertyBagException(Type type)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The type for which no property bag was found.

## MissingPropertyBagException(Type, Exception)

Initializes a new instance of the [MissingPropertyBagException](/engine/6000.7/script-reference/unity/properties/missingpropertybagexception.md) class with a specified type and a reference to the inner exception that is the cause of this exception.

```csharp
public MissingPropertyBagException(Type type, Exception inner)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The type for which no property bag was found.**** (\[Exception]\(https\://learn.microsoft.com/dotnet/api/system.exception)): The inner exception reference.
