Skip to main content

ErrorEventArgs

Namespace: Wisej.AI

Assembly: Wisej.AI

Provides data for the Error event in a SmartSession.

public class ErrorEventArgs : HandledEventArgs

Constructors​

ErrorEventArgs(session, exception, replacementMessage)​

Initializes a new instance of the ErrorEventArgs class.

NameTypeDescription
sessionSmartSessionThe SmartSession where the error occurred.
exceptionExceptionThe exception that was thrown.
replacementMessageMessageThe message to replace the original answer, if applicable.

Properties​

Exception​

Exception: Gets the exception that was thrown.

ReplacementMessage​

Message: Gets or sets the message to replace the original answer, if applicable.

Session​

SmartSession: Gets the SmartSession where the error occurred.

Used By​

NameDescription
SmartSession.ErrorEventHandlerRepresents the method that will handle an error event in a SmartSession.