Spec-Zone.ru › Symfony 4.1

FlattenException

class FlattenException

FlattenException оборачивает PHP ошибку или исключение, чтобы его можно было сериализовать.

В основном, этот класс удаляет все объекты из трассировки.

Методы

static create(Exception $exception, $statusCode = null, array $headers = array())
static FlattenException createFromThrowable(Throwable $exception, int|null $statusCode = null, array $headers = array())
toArray()
getStatusCode()
setStatusCode($code)
getHeaders()
setHeaders(array $headers)
getClass()
setClass($class)
getFile()
setFile($file)
getLine()
setLine($line)
getMessage()
setMessage($message)
getCode()
setCode($code)
getPrevious()
setPrevious(FlattenException $previous)
getAllPrevious()
getTrace()
setTraceFromException(Exception $exception) устаревший
void setTraceFromThrowable(Throwable $throwable)
setTrace($trace, $file, $line)

Детали

static create(Exception $exception, $statusCode = null, array $headers = array())

Параметры

Exception $exception
$statusCode
array $headers

static FlattenException createFromThrowable(Throwable $exception, int|null $statusCode = null, array $headers = array())

Параметры

Throwable $exception
int|null $statusCode
array $headers

Возвращаемое значение

FlattenException

toArray()

getStatusCode()

setStatusCode($code)

Параметры

$code

getHeaders()

setHeaders(array $headers)

Параметры

array $headers

getClass()

setClass($class)

Параметры

$class

getFile()

setFile($file)

Параметры

$file

getLine()

setLine($line)

Параметры

$line

getMessage()

setMessage($message)

Параметры

$message

getCode()

setCode($code)

Параметры

$code

getPrevious()

setPrevious(FlattenException $previous)

Параметры

FlattenException $previous

getAllPrevious()

getTrace()

setTraceFromException(Exception $exception) устаревший

устаревший

since 4.1, используйте {@see setTraceFromThrowable()} вместо этого.

Параметры

Exception $exception

void setTraceFromThrowable(Throwable $throwable)

Параметры

Throwable $throwable

Возвращаемое значение

void

setTrace($trace, $file, $line)

Параметры

$trace
$file
$line

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Debug/Exception/FlattenException.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API