System.SysUtils.Exception.GetBaseException

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetBaseException: Exception; virtual;

C++

virtual Exception* __fastcall GetBaseException(void);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils Exception

Description

GetBaseException returns the innermost exception.

Call the GetBaseException method to obtain the innermost exception. If there are no inner exceptions that triggered the current one, GetBaseException returns the current exception; otherwise GetBaseException inspects the inner exceptions until it finds the first one that triggered the chain of exceptions.

GetBaseException is also used as a getter method of the BaseException property.

See Also