Skip to content

Commit

Permalink
update UnsetPrivateKeyException and UnsetPublicKeyException
Browse files Browse the repository at this point in the history
  • Loading branch information
y-abderrazik committed Jun 27, 2023
1 parent 98dbc85 commit 40836c2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/API/Endpoints/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ protected function createEndpoint(): string
protected function assertPrivateKeyIsSet(): void
{
if ($this->apiService->getPrivateKey() === null) {
throw new UnsetPrivateKeyException();
throw new UnsetPrivateKeyException("private key not set");
}
}

protected function assertPublicKeyIsSet(): void
{
if ($this->apiService->getPublicKey() === null) {
throw new UnsetPublicKeyException();
throw new UnsetPublicKeyException("public key not set");
}
}
}
3 changes: 0 additions & 3 deletions src/API/Exceptions/Keys/UnsetPrivateKeyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@

class UnsetPrivateKeyException extends ValidationException
{
public function __construct() {
parent::__construct("private key not set");
}
}
3 changes: 0 additions & 3 deletions src/API/Exceptions/Keys/UnsetPublicKeyException.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,4 @@

class UnsetPublicKeyException extends ValidationException
{
public function __construct() {
parent::__construct("public key not set");
}
}

0 comments on commit 40836c2

Please sign in to comment.