Made message signing in Cryptography use SHA512 as the message content for... #1
2 changed files with 21 additions and 2 deletions
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
namespace Socialbox\Exceptions\Standard;
|
||||
|
||||
use Socialbox\Enums\StandardError;
|
||||
|
||||
class InvalidRpcArgumentException extends StandardException
|
||||
{
|
||||
/**
|
||||
* Thrown when a required parameter is missing
|
||||
*
|
||||
* @param string $parameterName The name of the parameter that is missing
|
||||
* @param string $reason The reason why the parameter is invalid
|
||||
*/
|
||||
public function __construct(string $parameterName, string $reason)
|
||||
{
|
||||
parent::__construct(sprintf('The parameter %s is invalid: %s', $parameterName, $reason), StandardError::RPC_INVALID_ARGUMENTS);
|
||||
}
|
||||
}
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
use Socialbox\Enums\StandardError;
|
||||
|
||||
class MissingArgumentException extends StandardException
|
||||
class MissingRpcArgumentException extends StandardException
|
||||
{
|
||||
/**
|
||||
* Thrown when a required parameter is missing
|
||||
*
|
||||
* @param string $parameterName
|
||||
* @param string $parameterName The name of the missing parameter
|
||||
*/
|
||||
public function __construct(string $parameterName)
|
||||
{
|
Loading…
Add table
Reference in a new issue