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.
| Member | Signature |
|---|---|
reason | reason(): Core\Script\ExitReport::Reason |
status | status(): int |
error | error(): ?Throwable |
memoryPeak | memoryPeak(): int |
Enums
ReasonHow a script ended, asCore\Script\ExitReport::reason()returns it. AFATALerror and a cancelled script have no case, because they run no exit function.
