BookNotAvailableException
extends Exception
in package
Class BookNotAvailableException
Exception thrown when a requested book is not available.
Table of Contents
Methods
- __construct() : mixed
- Constructor for the BookNotAvailableException class.
- __toString() : string
- Converts the exception to a string representation.
Methods
__construct()
Constructor for the BookNotAvailableException class.
public
__construct([string $message = "Book not available" ][, int $code = 0 ][, Exception|null $previous = null ]) : mixed
Parameters
- $message : string = "Book not available"
-
The exception message (default is "Book not available").
- $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.