System.SysUtils.Exception.ThrowOuterException

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure ThrowOuterException(E: Exception); static;

C++

static void __fastcall ThrowOuterException(Exception* E);

Properties

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

Description

ThrowOuterException raises an exception and captures the current one.

Call RaiseOuterException from within a catch block to raise a new exception and preserve the current one. RaiseOuterException raises a new exception and sets the current one as an inner exception. RaiseOuterException is useful when creating exception chains.

Note: There is no difference between ThrowOuterException and RaiseOuterException, except the naming. ThrowOuterException is named so to primarily suit C++ developers.

See Also