Skip to main content
Table of Contents

TTMSFNCCustomCloudRollBar.LogException Method

Logs an exception entry to the supplied project.

API unit family: TMSFNCCloudRollbar Declaring type: TTMSFNCCustomCloudRollBar

Overloads

Overload 1

Logs an exception entry to the supplied project.

FMX.TMSFNCCloudRollbar.hppPascalC++
procedure LogException(AProject: TTMSFNCCloudRollBarProject; AMessage: string; AErrorType: string; ASource: string; AStackTrace: string = ''; ALevel: TTMSFNCCloudRollBarLogLevel = rllError; ATimestamp: TDateTime = 0; ADescription: string = ''; AEnvironment: string = 'production');
void __fastcall LogException(TTMSFNCCloudRollBarProject* AProject, System::UnicodeString AMessage, System::UnicodeString AErrorType, System::UnicodeString ASource, System::UnicodeString AStackTrace = System::UnicodeString(), TTMSFNCCloudRollBarLogLevel ALevel = (TTMSFNCCloudRollBarLogLevel)(0x3), System::TDateTime ATimestamp = 0.000000E+00, System::UnicodeString ADescription = System::UnicodeString(), System::UnicodeString AEnvironment = L"production")/* 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.
ADescription Optional additional description.
AEnvironment Environment the entry is reported under; defaults to production.

Overload 2

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

FMX.TMSFNCCloudRollbar.hppPascalC++
procedure LogException(AProjectID: string; AMessage: string; AErrorType: string; ASource: string; AStackTrace: string = ''; ALevel: TTMSFNCCloudRollBarLogLevel = rllError; ATimestamp: TDateTime = 0; ADescription: string = ''; AEnvironment: string = 'production');
void __fastcall LogException(System::UnicodeString AProjectID, System::UnicodeString AMessage, System::UnicodeString AErrorType, System::UnicodeString ASource, System::UnicodeString AStackTrace = System::UnicodeString(), TTMSFNCCloudRollBarLogLevel ALevel = (TTMSFNCCloudRollBarLogLevel)(0x3), System::TDateTime ATimestamp = 0.000000E+00, System::UnicodeString ADescription = System::UnicodeString(), System::UnicodeString AEnvironment = L"production")/* 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.
ADescription Optional additional description.
AEnvironment Environment the entry is reported under; defaults to production.