Skip to content

Commit

Permalink
exceptions moved out
Browse files Browse the repository at this point in the history
  • Loading branch information
Dylan-DPC committed Sep 29, 2017
1 parent 35b9e90 commit 3062d8b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/Exceptions/HashFailedException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Dpc\HashVerifier\Exceptions;


class HashFailedException extends \Exception
{

/**
* HashFailedException constructor.
*/
public function __construct()
{
parent::__construct('Hash Validation Failed');
}
}
16 changes: 16 additions & 0 deletions src/Exceptions/NonceFailedException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace Dpc\HashVerifier\Exceptions;


class NonceFailedException extends \Exception
{

/**
* NonceFailedException constructor.
*/
public function __construct()
{
parent::__construct('Authentication failed because nonce does not match');
}
}

0 comments on commit 3062d8b

Please sign in to comment.