Skip to content
This repository has been archived by the owner on Apr 4, 2018. It is now read-only.

Commit

Permalink
Merge pull request #2 from verumconsilium/hotfix/1
Browse files Browse the repository at this point in the history
Fix Exception namespaces
  • Loading branch information
Verum Consilium authored Apr 3, 2018
2 parents 12ad7f5 + a623ada commit f0f6175
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/Exceptions/ConnectionException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace VerumConsilium\PayU\Exception;
namespace VerumConsilium\PayU\Exceptions;

use Exception;

Expand Down
19 changes: 9 additions & 10 deletions src/Exceptions/PayUErrorCodes.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace VerumConsilium\PayU\Exception;
namespace VerumConsilium\PayU\Exceptions;

/**
*
Expand All @@ -12,19 +12,18 @@
*/
class PayUErrorCodes
{

/** json serialization error */
const JSON_SERIALIZATION_ERROR = 'JSON_SERIALIZATION_ERROR';

/** json deserialization error */
const JSON_DESERIALIZATION_ERROR= 'JSON_DESERIALIZATION_ERROR';
const JSON_DESERIALIZATION_ERROR = 'JSON_DESERIALIZATION_ERROR';

/** invalid parameters for build request */
const INVALID_PARAMETERS= 'INVALID_PARAMETERS';
const INVALID_PARAMETERS = 'INVALID_PARAMETERS';

/** connection error */
const CONNECTION_EXCEPTION= 'CONNECTION_EXCEPTION';
const CONNECTION_EXCEPTION = 'CONNECTION_EXCEPTION';

/** general Api error */
const API_ERROR= 'API_ERROR';
const API_ERROR = 'API_ERROR';
}
5 changes: 2 additions & 3 deletions src/Exceptions/PayUException.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace VerumConsilium\PayU\Exception;
namespace VerumConsilium\PayU\Exceptions;

use Exception;

Expand All @@ -15,8 +15,7 @@
class PayUException extends Exception
{
public $payUCode;



/**
* constructor method
* @param string $payuCode a element of PayUErrorCodes
Expand Down

0 comments on commit f0f6175

Please sign in to comment.