The HttpException provides several overloaded constructors for communicating custom HTTP error information:
Creates an empty instance of HttpException.
Throws an HttpException whose Message property is set to the value of the string passed into the constructor.
Throws an HttpException whose GetHttpCode method will return the integer value passed into the constructor, and whose Message property is set to the value of the string passed into the constructor.
Throws an HttpException whose Message property is set to the value of the string passed into the constructor, and whose InnerException property is set to the Exception object passed into the constructor.
Throws an HttpException whose Message property is set to the value of the string passed into the constructor, and whose ErrorCode property is set to the value of the integer passed into the constructor.
Throws an HttpException whose GetHttpCode method returns the integer value passed into the constructor, whose Message property is set to the value of the string passed into the constructor, and whose InnerException property is set to the Exception object passed into the constructor.
Throws an HttpException whose GetHttpCode method returns the first integer value passed into the constructor, whose Message property is set to the value of the string passed into the constructor, and whose ErrorCode property is set to the value of the second integer passed into the constructor.
|