Add CryptographyException for cryptographic error handling

This commit is contained in:
netkas 2024-09-13 13:49:40 -04:00
parent 39ecd16fc4
commit e331a3ed90

View 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);
}
}