Click or drag to resize

HttpServerResponseSendError(Int32, String, Exception) Method

Wraps the provided System.Exception object, including the exception type name, exception message and full stacktrace into an HTML document and puts the resulting document into ContentBytes.

Namespace: Crestron.SimplSharp.Net.Http
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public void SendError(
	int aCode,
	string aResponseText,
	Exception e
)

Parameters

aCode  Int32
Int32 with HTTP response code.
aResponseText  String
String with HTTP response text.
e  Exception
A Exception object.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also