HttpStatusCodeException Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Http
- Assemblies
- Cuemon.AspNetCore.dll
HttpStatusCodeException(int, string, Exception)
Initializes a new instance of the HttpStatusCodeException class.
protected HttpStatusCodeException(int statusCode, string message, Exception innerException = null)
Parameters
statusCodeintThe HTTP status code to associate with this exception.
messagestringThe message that describes the HTTP status code.
innerExceptionExceptionThe exception that is the cause of the current exception.
HttpStatusCodeException(int, string, string, Exception)
Initializes a new instance of the HttpStatusCodeException class.
protected HttpStatusCodeException(int statusCode, string reasonPhrase, string message, Exception innerException = null)
Parameters
statusCodeintThe HTTP status code to associate with this exception.
reasonPhrasestringThe HTTP reason phrase to associate with
statusCodeand this exception.messagestringThe message that describes the HTTP status code.
innerExceptionExceptionThe exception that is the cause of the current exception.