Skip to content

Core\Script\ExitReport

Describes how a script ended. Each function added with Core\Script::onExit() receives one. reason() returns the kind of ending, status() returns the exit status, error() returns the exception that ended the script, if there was one, and memoryPeak() returns the most memory the script used. The values cannot change.

Members

4 members.

MemberSignature
reasonreason(): Core\Script\ExitReport::Reason
statusstatus(): int
errorerror(): ?Throwable
memoryPeakmemoryPeak(): int

Enums

  • ReasonHow a script ended, as Core\Script\ExitReport::reason() returns it. A FATAL error and a cancelled script have no case, because they run no exit function.