Initializes a new instance of the ModelError class by using the specified exception and error message.
Namespace:  System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub New ( _
    exception As Exception, _
    errorMessage As String _
)
'Usage
Dim exception As Exception
Dim errorMessage As String
Dim instance As New ModelError(exception, _
    errorMessage)
public ModelError(
    Exception exception,
    string errorMessage
)
public:
ModelError(
    Exception^ exception, 
    String^ errorMessage
)
new : 
        exception:Exception * 
        errorMessage:string -> ModelError
public function ModelError(
    exception : Exception, 
    errorMessage : String
)
Parameters
- exception
 Type: System.Exception
 The exception.
- errorMessage
 Type: System.String
 The error message