Skip to content

Commit

Permalink
Merge pull request #12 from Textalk/dev-new-errors
Browse files Browse the repository at this point in the history
Add some more standard errors
  • Loading branch information
lasso committed Mar 1, 2015
2 parents 3890c24 + 4faa914 commit 006a2ea
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class Exception extends \Exception {
-32000 => 'ServerError',
1006 => 'AccessDenied',
9001 => 'ValidationFailed',
9002 => 'NormalizationFailed',
9003 => 'ObjectNotFound'
);

/**
Expand Down
6 changes: 6 additions & 0 deletions lib/Exception/NormaizationFailed.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

namespace Textalk\WebshopClient\Exception;
use Textalk\WebshopClient\Exception;

class NormalizationFailed extends Exception {}
6 changes: 6 additions & 0 deletions lib/Exception/ObjectNotFound.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

namespace Textalk\WebshopClient\Exception;
use Textalk\WebshopClient\Exception;

class ObjectNotFound extends Exception {}

0 comments on commit 006a2ea

Please sign in to comment.