Extensions..::..CreateError Method

Creates the error.

Namespace:  MichaelBrandonMorris.KingsportMillSafetyTraining.Controllers
Assembly:  MichaelBrandonMorris.KingsportMillSafetyTraining (in MichaelBrandonMorris.KingsportMillSafetyTraining.dll)

Syntax


internal static ActionResult CreateError(
	IController controller,
	HttpStatusCode code,
	Exception exception
)
Friend Shared Function CreateError ( _
	controller As IController, _
	code As HttpStatusCode, _
	exception As Exception _
) As ActionResult
internal:
static ActionResult^ CreateError(
	IController^ controller, 
	HttpStatusCode^ code, 
	Exception^ exception
)

Parameters

controller
Type: IController
The controller.
code
Type: HttpStatusCode
The code.
exception
Type: Exception
The exception.

Return Value

ActionResult.