Back to product page

CreateErrorPage method


Creates custom error page.

Type

String

Syntax

  • C#
  • VB.NET
String CreateErrorPage(Int64 ErrorCode, String ErrorText, String Description);
The CreateErrorPage(ErrorCode,ErrorText,Description) syntax has these parts:
ErrorCodeCustom error code.
ErrorTextCustom error text.
DescriptionA text describing the error that you provided.
Return valueString Expression. You can use this result to display it to user.

Function CreateErrorPage(ByVal ErrorCode As Int64, ByVal ErrorText As String, ByVal Description As String) As String
The CreateErrorPage(ErrorCode,ErrorText,Description) syntax has these parts:
ErrorCodeCustom error code.
ErrorTextCustom error text.
DescriptionA text describing the error that you provided.
Return valueString Expression. You can use this result to display it to user.

Remarks

You can use this method to create your own Custom Error Pages. The method will return a String value, which you can use to fill Body property of your Response. You can then use SendResponse method to show this error to user when you want to.

Platforms

Windows