> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# EdmModelValidationException

> Represents an exception that indicates validation errors occurred on entities.

## Definition

**Assembly:** Microsoft.Restier.Core.dll

**Namespace:** Microsoft.Restier.Core

**Inheritance:** System.Exception

## Syntax

```csharp theme={"dark"}
Microsoft.Restier.Core.EdmModelValidationException
```

## Summary

Represents an exception that indicates validation errors occurred on entities.

## Constructors

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

#### Syntax

```csharp theme={"dark"}
public EdmModelValidationException()
```

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

Initializes a new instance of the [EdmModelValidationException](/restier/api-reference/Microsoft/Restier/Core/EdmModelValidationException) class.

#### Syntax

```csharp theme={"dark"}
public EdmModelValidationException(string message)
```

#### Parameters

| Name      | Type     | Description               |
| --------- | -------- | ------------------------- |
| `message` | `string` | Message of the exception. |

### <Icon icon="hammer" iconType="duotone" color="#419AC5" size={24} className="mr-2" /> .ctor

Initializes a new instance of the [EdmModelValidationException](/restier/api-reference/Microsoft/Restier/Core/EdmModelValidationException) class.

#### Syntax

```csharp theme={"dark"}
public EdmModelValidationException(string message, System.Exception innerException)
```

#### Parameters

| Name             | Type               | Description               |
| ---------------- | ------------------ | ------------------------- |
| `message`        | `string`           | Message of the exception. |
| `innerException` | `System.Exception` | Inner exception.          |
