Skip to content

Latest commit

 

History

History
391 lines (273 loc) · 8.31 KB

ObjectNotFoundException.md

File metadata and controls

391 lines (273 loc) · 8.31 KB

BumbleDocGen / Technical description of the project / Class map / ObjectNotFoundException


namespace BumbleDocGen\Core\Cache\LocalCache\Exception;

final class ObjectNotFoundException extends \Exception implements \Throwable, \Stringable
Exception is the base class for all Exceptions.

See:

Initialization methods:

  1. __construct - Construct the exception. Note: The message is NOT binary safe.

Methods:

  1. __toString - String representation of the exception
  2. __wakeup
  3. getCode - Gets the Exception code
  4. getFile - Gets the file in which the exception occurred
  5. getLine - Gets the line in which the exception occurred
  6. getMessage - Gets the Exception message
  7. getPrevious - Returns previous Exception
  8. getTrace - Gets the stack trace
  9. getTraceAsString - Gets the stack trace as a string

Method details:

  • # __construct
// Implemented in Exception

public function __construct(string $message = "", int $code, \Throwable|null $previous = \null);
Construct the exception. Note: The message is NOT binary safe.

Parameters:

Name Type Description
$message string [optional] The Exception message to throw.
$code int [optional] The Exception code.
$previous \Throwable | null [optional] The previous throwable used for the exception chaining.

See:


  • # __toString
// Implemented in Exception

public function __toString(): string;
String representation of the exception

Parameters: not specified

Return value: string

See:


  • # __wakeup
// Implemented in Exception

public function __wakeup(): mixed;

Parameters: not specified

Return value: mixed


  • # getCode
// Implemented in Exception

public function getCode(): mixed|int;
Gets the Exception code

Parameters: not specified

Return value: mixed | int

See:


  • # getFile
// Implemented in Exception

public function getFile(): string;
Gets the file in which the exception occurred

Parameters: not specified

Return value: string

See:


  • # getLine
// Implemented in Exception

public function getLine(): int;
Gets the line in which the exception occurred

Parameters: not specified

Return value: int

See:


  • # getMessage
// Implemented in Exception

public function getMessage(): string;
Gets the Exception message

Parameters: not specified

Return value: string

See:


  • # getPrevious
// Implemented in Exception

public function getPrevious(): \Throwable|null;
Returns previous Exception

Parameters: not specified

Return value: \Throwable | null

See:


  • # getTrace
// Implemented in Exception

public function getTrace(): array;
Gets the stack trace

Parameters: not specified

Return value: array

See:


  • # getTraceAsString
// Implemented in Exception

public function getTraceAsString(): string;
Gets the stack trace as a string

Parameters: not specified

Return value: string

See: