PocketMine-MP 5.19.1 git-5cc1068cd43264d3363295eb8d6901e02f467897
pocketmine\thread\ThreadCrashInfo Class Reference
+ Inheritance diagram for pocketmine\thread\ThreadCrashInfo:
+ Collaboration diagram for pocketmine\thread\ThreadCrashInfo:

Public Member Functions

 __construct (private string $type, private string $message, private string $file, private int $line, array $trace, private string $threadName)
 
 getFile ()
 
 getLine ()
 
 getMessage ()
 
 getThreadName ()
 
 getTrace ()
 
 getType ()
 
 makePrettyMessage ()
 

Static Public Member Functions

static fromLastErrorInfo (array $info, string $threadName)
 
static fromThrowable (\Throwable $e, string $threadName)
 

Detailed Description

Definition at line 34 of file ThreadCrashInfo.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\thread\ThreadCrashInfo::__construct ( private string  $type,
private string  $message,
private string  $file,
private int  $line,
array  $trace,
private string  $threadName 
)
Parameters
ThreadCrashInfoFrame[]$trace

Definition at line 42 of file ThreadCrashInfo.php.

Member Function Documentation

◆ fromLastErrorInfo()

static pocketmine\thread\ThreadCrashInfo::fromLastErrorInfo ( array  $info,
string  $threadName 
)
static

@phpstan-param array{type: int, message: string, file: string, line: int} $info

Definition at line 60 of file ThreadCrashInfo.php.

◆ fromThrowable()

static pocketmine\thread\ThreadCrashInfo::fromThrowable ( \Throwable  $e,
string  $threadName 
)
static

Definition at line 53 of file ThreadCrashInfo.php.

◆ getFile()

pocketmine\thread\ThreadCrashInfo::getFile ( )

Definition at line 73 of file ThreadCrashInfo.php.

◆ getLine()

pocketmine\thread\ThreadCrashInfo::getLine ( )

Definition at line 75 of file ThreadCrashInfo.php.

◆ getMessage()

pocketmine\thread\ThreadCrashInfo::getMessage ( )

Definition at line 71 of file ThreadCrashInfo.php.

◆ getThreadName()

pocketmine\thread\ThreadCrashInfo::getThreadName ( )

Definition at line 84 of file ThreadCrashInfo.php.

◆ getTrace()

pocketmine\thread\ThreadCrashInfo::getTrace ( )
Returns
ThreadCrashInfoFrame[]

Definition at line 80 of file ThreadCrashInfo.php.

◆ getType()

pocketmine\thread\ThreadCrashInfo::getType ( )

Definition at line 69 of file ThreadCrashInfo.php.

◆ makePrettyMessage()

pocketmine\thread\ThreadCrashInfo::makePrettyMessage ( )

Definition at line 86 of file ThreadCrashInfo.php.


The documentation for this class was generated from the following file: