Made message signing in Cryptography use SHA512 as the message content for... #1

Closed
netkas wants to merge 421 commits from master into dev
2 changed files with 21 additions and 2 deletions
Showing only changes of commit 8ced492c5b - Show all commits

View file

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

View file

@ -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)
{