ModelErrorCollection.Add Method (Exception)

Adds the specified Exception object to the model-error collection.

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

public function Add(
	exception : Exception
)

Parameters

exception
Type: System.Exception

The exception.

Show: