Add CryptographyException for cryptographic error handling
This commit is contained in:
parent
39ecd16fc4
commit
e331a3ed90
1 changed files with 21 additions and 0 deletions
21
src/Socialbox/Exceptions/CryptographyException.php
Normal file
21
src/Socialbox/Exceptions/CryptographyException.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
namespace Socialbox\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Throwable;
|
||||
|
||||
class CryptographyException extends Exception
|
||||
{
|
||||
/**
|
||||
* Thrown when an error occurs during cryptography operations.
|
||||
*
|
||||
* @param string $message The error message
|
||||
* @param int $code The error code
|
||||
* @param Throwable|null $previous Optional. The previous exception used for the exception chaining
|
||||
*/
|
||||
public function __construct(string $message, int $code = 0, Throwable $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue