class ApiPlatform\ApiResource\Error extends implements `<a href="/docs/main/references/Metadata/Exception/HttpExceptionInterface">ApiPlatform\Metadata\Exception\HttpExceptionInterface</a>`, `<a href="/docs/main/references/Metadata/Exception/ProblemExceptionInterface">ApiPlatform\Metadata\Exception\ProblemExceptionInterface, Throwable, Stringable
{
public __construct(string $title, string $detail, int $status, null|array $originalTrace, null|string $instance, string $type, array $headers, null|Throwable $previous)
public getHydraTitle(): string
public getHydraDescription(): string
public getDescription(): string
public createFromException(Exception|Throwable $exception, int $status): ApiPlatform\State\ApiResource\Error
public getHeaders(): array
public getStatusCode(): int
public setHeaders(array<string, string> $headers): null
public getType(): string
public setType(string $type): null
public getTitle(): string
public setTitle(null|string $title): null
public getStatus(): int
public setStatus(int $status): null
public getDetail(): string
public setDetail(null|string $detail): null
public getInstance(): string
public setInstance(null|string $instance): null
public __wakeup()
public getMessage(): string
public getCode()
public getFile(): string
public getLine(): int
public getTrace(): array
public getPrevious(): Throwable
public getTraceAsString(): string
public __toString(): string
}
array $originalTrace
$message
$code
string $file
int $line
Made with love by
Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.
Learn more