ErrorModel.ErrorModel Constructor

Namespace:
Weavy.Web.Models
Assembly:
Weavy.Web.dll

Overloads

ErrorModel() Initialize a new instance of ErrorModel.
ErrorModel(Exception) Initialize a new instance of ErrorModel with the specified Exception.
ErrorModel(Int32) Initialize a new instance of ErrorModel with the specified http status code.
ErrorModel(Int32, String) Initialize a new instance of ErrorModel with the specified http status code and message.

ErrorModel()

Initialize a new instance of ErrorModel.

public ErrorModel()

ErrorModel(Exception)

Initialize a new instance of ErrorModel with the specified Exception.

public ErrorModel(Exception exception)

Parameters

exception
System.Exception

ErrorModel(int)

Initialize a new instance of ErrorModel with the specified http status code.

public ErrorModel(int code)

Parameters

code
int

A http status code, e.g. 500.

ErrorModel(int, string)

Initialize a new instance of ErrorModel with the specified http status code and message.

public ErrorModel(int code, string message)

Parameters

code
int

A http status code, e.g. 500.

message
string

An error message.