Skip to main content
Table of Contents

TTMSFNCCustomCloudSentry.LogException Method

Logs an exception entry to the supplied project.

API unit family: TMSFNCCloudSentry Declaring type: TTMSFNCCustomCloudSentry

Overloads

Overload 1

Logs an exception entry to the supplied project.

FMX.TMSFNCCloudSentry.hppPascalC++
procedure LogException(AProject: TTMSFNCCloudSentryProject; AMessage: string; AErrorType: string; ASource: string; AStackTrace: string = ''; ALevel: TTMSFNCCloudSentryLogLevel = sllError; ATimestamp: TDateTime = 0; AValue: string = '');
void __fastcall LogException(TTMSFNCCloudSentryProject* AProject, System::UnicodeString AMessage, System::UnicodeString AErrorType, System::UnicodeString ASource, System::UnicodeString AStackTrace = System::UnicodeString(), TTMSFNCCloudSentryLogLevel ALevel = (TTMSFNCCloudSentryLogLevel)(0x3), System::TDateTime ATimestamp = 0.000000E+00, System::UnicodeString AValue = System::UnicodeString())/* overload */;

Parameters

Name Description
AProject Target project.
AMessage Exception message.
AErrorType Exception type or class name.
ASource Source location or component that raised the exception.
AStackTrace Optional stack trace.
ALevel Severity level; defaults to error.
ATimestamp Optional entry timestamp; 0 uses the current time.
AValue Optional additional value associated with the entry.

Overload 2

Logs an exception entry to the project identified by its identifier.

FMX.TMSFNCCloudSentry.hppPascalC++
procedure LogException(AProjectID: string; AMessage: string; AErrorType: string; ASource: string; AStackTrace: string = ''; ALevel: TTMSFNCCloudSentryLogLevel = sllError; ATimestamp: TDateTime = 0; AValue: string = '');
void __fastcall LogException(System::UnicodeString AProjectID, System::UnicodeString AMessage, System::UnicodeString AErrorType, System::UnicodeString ASource, System::UnicodeString AStackTrace = System::UnicodeString(), TTMSFNCCloudSentryLogLevel ALevel = (TTMSFNCCloudSentryLogLevel)(0x3), System::TDateTime ATimestamp = 0.000000E+00, System::UnicodeString AValue = System::UnicodeString())/* overload */;

Parameters

Name Description
AProjectID Identifier of the target project.
AMessage Exception message.
AErrorType Exception type or class name.
ASource Source location or component that raised the exception.
AStackTrace Optional stack trace.
ALevel Severity level; defaults to error.
ATimestamp Optional entry timestamp; 0 uses the current time.
AValue Optional additional value associated with the entry.