ModelError Constructor (Exception, String)

Visual Studio 2010

Initializes a new instance of the ModelError class by using the specified exception and error message.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

'Declaration
Public Sub New ( _
	exception As Exception, _
	errorMessage As String _
)

Parameters

exception
Type: System.Exception
The exception.
errorMessage
Type: System.String
The error message.

ExceptionCondition
ArgumentNullException

The exception parameter is Nothing.

Community Additions

ADD
Show: