Documentation

Throwable
in package

FinalYes
Tags
psalm-immutable
no-named-arguments

Parameter names are not covered by the backward compatibility promise for PHPUnit

Table of Contents

Properties

$className  : string
$description  : string
$message  : string
$previous  : Throwable|null
$stackTrace  : string

Methods

__construct()  : mixed
asString()  : string
className()  : string
description()  : string
hasPrevious()  : bool
message()  : string
previous()  : self
stackTrace()  : string

Properties

$className read-only

private string $className
Tags
psalm-var

class-string

$description read-only

private string $description

$stackTrace read-only

private string $stackTrace

Methods

__construct()

public __construct(string $className, string $message, string $description, string $stackTrace, self|null $previous) : mixed
Parameters
$className : string
$message : string
$description : string
$stackTrace : string
$previous : self|null
Tags
psalm-param

class-string $className

className()

public className() : string
Tags
psalm-return

class-string

Return values
string

description()

public description() : string
Return values
string

hasPrevious()

public hasPrevious() : bool
Tags
psalm-assert-if-true

!null $this->previous

Return values
bool

message()

public message() : string
Return values
string

stackTrace()

public stackTrace() : string
Return values
string

        
On this page

Search results