Made message signing in Cryptography use SHA512 as the message content for... #1
1 changed files with 3 additions and 3 deletions
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
namespace Socialbox\Exceptions\Standard;
|
namespace Socialbox\Exceptions\Standard;
|
||||||
|
|
||||||
use Exception;
|
|
||||||
use InvalidArgumentException;
|
use InvalidArgumentException;
|
||||||
use Socialbox\Enums\StandardError;
|
use Socialbox\Enums\StandardError;
|
||||||
|
use Throwable;
|
||||||
|
|
||||||
class InvalidRpcArgumentException extends StandardRpcException
|
class InvalidRpcArgumentException extends StandardRpcException
|
||||||
{
|
{
|
||||||
|
@ -12,9 +12,9 @@
|
||||||
* Thrown when a required parameter is missing
|
* Thrown when a required parameter is missing
|
||||||
*
|
*
|
||||||
* @param string $parameterName The name of the parameter that is missing
|
* @param string $parameterName The name of the parameter that is missing
|
||||||
* @param string|Exception|null $reason The reason why the parameter is invalid can be a string or an exception or null
|
* @param string|Throwable|null $reason The reason why the parameter is invalid can be a string or an exception or null
|
||||||
*/
|
*/
|
||||||
public function __construct(string $parameterName, null|string|Exception $reason=null)
|
public function __construct(string $parameterName, null|string|Throwable $reason=null)
|
||||||
{
|
{
|
||||||
if(is_null($reason))
|
if(is_null($reason))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue