ModelError Constructor (Exception, String)
.NET Framework (current version)
Initializes a new instance of the ModelError class using the specified exception and error message.
Assembly: System.Web (in System.Web.dll)
Parameters
- exception
-
Type:
System.Exception
The exception.
- errorMessage
-
Type:
System.String
The error message.
| Exception | Condition |
|---|---|
| ArgumentNullException | The exception parameter is null. |
.NET Framework
Available since 4.5
Available since 4.5
Show: