ResourceNotFoundException
extends Exception
in package
Class ResourceNotFoundException
Exception thrown when a specified resource is not found.
Table of Contents
Methods
- __construct() : mixed
- Constructor for the ResourceNotFoundException class.
- __toString() : string
- Converts the exception to a string representation.
Methods
__construct()
Constructor for the ResourceNotFoundException class.
public
__construct(string $resourceType, int $resourceId[, int $code = 0 ][, Exception|null $previous = null ]) : mixed
Parameters
- $resourceType : string
-
The type of the resource that was not found.
- $resourceId : int
-
The ID of the resource that was not found.
- $code : int = 0
-
The exception code (default is 0).
- $previous : Exception|null = null
-
The previous exception used for exception chaining.
__toString()
Converts the exception to a string representation.
public
__toString() : string
Return values
string —The string representation of the exception.