TryCatch Class

class TryCatch

Represents a Try/Catch section

__construct(Tryy $try, Catchh $catch, ?Finallyy $finally = null)

Create a new TryCatch

Parameters:
  • $try (Tryy) – The try section

  • $catch (Catchh) – The catch section

  • $finally (?Finallyy) – The finally section (default: no finally section)

Returns:

A new TryCatch instance

Return type:

TryCatch