Table of Contents

TTMSFNCCloudRollBar.LogException Method

Logs an exception entry to the supplied project.

API unit family: TMSFNCCloudRollbar Declaring type: TTMSFNCCloudRollBar Inherited from: TTMSFNCCustomCloudRollBar

Overloads

Overload 1

Logs an exception entry to the supplied project.

procedure LogException(AProject: TTMSFNCCloudRollBarProject; AMessage: string; AErrorType: string; ASource: string; AStackTrace: string = ''; ALevel: TTMSFNCCloudRollBarLogLevel = rllError; ATimestamp: TDateTime = 0; ADescription: string = ''; AEnvironment: string = 'production');

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.

procedure LogException(AProjectID: string; AMessage: string; AErrorType: string; ASource: string; AStackTrace: string = ''; ALevel: TTMSFNCCloudRollBarLogLevel = rllError; ATimestamp: TDateTime = 0; ADescription: string = ''; AEnvironment: string = 'production');

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.