Skip to content

Commit

Permalink
Updated root namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Brecht-Precht committed Jul 6, 2016
1 parent 605205e commit 40f2aac
Show file tree
Hide file tree
Showing 33 changed files with 78 additions and 78 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A PHP library providing common exception classes used by different projects.
```{json}
{
"require": {
"markenwerk/common-exceptions": "*"
"markenwerk/common-exceptions": "~3.0"
}
}
```
Expand All @@ -34,17 +34,17 @@ require_once('path/to/vendor/autoload.php');
```{php}
try{
// Perform something maybe throwing an exception
} catch (CommonException\NetworkException\ConnectionException $exception) {
} catch (Markenwerk\CommonException\NetworkException\ConnectionException $exception) {
// API is not reachable
} catch (CommonException\NetworkException\CurlException $exception) {
} catch (Markenwerk\CommonException\NetworkException\CurlException $exception) {
// Curl failed
} catch (CommonException\ApiException\InvalidResponseException $exception) {
} catch (Markenwerk\CommonException\ApiException\InvalidResponseException $exception) {
// API returns an unexpected result
} catch (CommonException\ApiException\RequestQuotaException $exception) {
} catch (Markenwerk\CommonException\ApiException\RequestQuotaException $exception) {
// API requests over the allowed limit
} catch (CommonException\ApiException\NoResultsException $exception) {
} catch (Markenwerk\CommonException\ApiException\NoResultsException $exception) {
// API request had no result
} catch (CommonException\IoException\FileWriteException $exception) {
} catch (Markenwerk\CommonException\IoException\FileWriteException $exception) {
// Log file was not writable
}
Expand All @@ -55,11 +55,11 @@ try{
```{php}
try{
// Perform something maybe throwing an exception
} catch (CommonException\NetworkException\Base\NetworkException $exception) {
} catch (Markenwerk\CommonException\NetworkException\Base\NetworkException $exception) {
// Any network exception was thrown
} catch (CommonException\ApiException\Base\ApiException $exception) {
} catch (Markenwerk\CommonException\ApiException\Base\ApiException $exception) {
// Any API exception was thrown
} catch (CommonException\IoException\Base\IoException $exception) {
} catch (Markenwerk\CommonException\IoException\Base\IoException $exception) {
// Any IO exception was thrown
}
Expand All @@ -70,7 +70,7 @@ try{
```{php}
try{
// Perform something maybe throwing an exception
} catch (CommonException\Base\BaseException $exception) {
} catch (Markenwerk\CommonException\Base\BaseException $exception) {
// Any exception was thrown
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"autoload": {
"psr-4": {
"CommonException\\": "src/"
"Markenwerk\\CommonException\\": "src/"
}
},
"require": {
Expand Down
4 changes: 2 additions & 2 deletions src/ApiException/AuthenticationException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\ApiException;
namespace Markenwerk\CommonException\ApiException;

/**
* Class AuthenticationException
*
* @package CommonException\ApiException
* @package Markenwerk\CommonException\ApiException
*/
class AuthenticationException extends Base\ApiException
{
Expand Down
6 changes: 3 additions & 3 deletions src/ApiException/Base/ApiException.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace CommonException\ApiException\Base;
namespace Markenwerk\CommonException\ApiException\Base;

use CommonException\Base;
use Markenwerk\CommonException\Base;

/**
* Class ApiException
*
* @package CommonException\ApiException
* @package Markenwerk\CommonException\ApiException
*/
class ApiException extends Base\BaseException
{
Expand Down
4 changes: 2 additions & 2 deletions src/ApiException/InvalidResponseException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\ApiException;
namespace Markenwerk\CommonException\ApiException;

/**
* Class InvalidResponseException
*
* @package CommonException\ApiException
* @package Markenwerk\CommonException\ApiException
*/
class InvalidResponseException extends Base\ApiException
{
Expand Down
4 changes: 2 additions & 2 deletions src/ApiException/NoResultException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\ApiException;
namespace Markenwerk\CommonException\ApiException;

/**
* Class NoResultException
*
* @package CommonException\ApiException
* @package Markenwerk\CommonException\ApiException
*/
class NoResultException extends Base\ApiException
{
Expand Down
4 changes: 2 additions & 2 deletions src/ApiException/RequestQuotaException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\ApiException;
namespace Markenwerk\CommonException\ApiException;

/**
* Class RequestQuotaException
*
* @package CommonException\ApiException
* @package Markenwerk\CommonException\ApiException
*/
class RequestQuotaException extends Base\ApiException
{
Expand Down
4 changes: 2 additions & 2 deletions src/ApiException/UnexpectedResponseException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\ApiException;
namespace Markenwerk\CommonException\ApiException;

/**
* Class UnexpectedResponseException
*
* @package CommonException\ApiException
* @package Markenwerk\CommonException\ApiException
*/
class UnexpectedResponseException extends Base\ApiException
{
Expand Down
4 changes: 2 additions & 2 deletions src/Base/BaseException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\Base;
namespace Markenwerk\CommonException\Base;

/**
* Class BaseException
*
* @package CommonException
* @package Markenwerk\CommonException
*/
abstract class BaseException extends \Exception
{
Expand Down
6 changes: 3 additions & 3 deletions src/IoException/Base/IoException.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace CommonException\IoException\Base;
namespace Markenwerk\CommonException\IoException\Base;

use CommonException\Base;
use Markenwerk\CommonException\Base;

/**
* Class BaseException
*
* @package CommonException\IoException\Base
* @package Markenwerk\CommonException\IoException\Base
*/
class IoException extends Base\BaseException
{
Expand Down
4 changes: 2 additions & 2 deletions src/IoException/FileCopyException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\IoException;
namespace Markenwerk\CommonException\IoException;

/**
* Class FileCopyException
*
* @package CommonException\IoException
* @package Markenwerk\CommonException\IoException
*/
class FileCopyException extends Base\IoException
{
Expand Down
4 changes: 2 additions & 2 deletions src/IoException/FileDeletableException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\IoException;
namespace Markenwerk\CommonException\IoException;

/**
* Class FileDeletableException
*
* @package CommonException\IoException
* @package Markenwerk\CommonException\IoException
*/
class FileDeletableException extends Base\IoException
{
Expand Down
4 changes: 2 additions & 2 deletions src/IoException/FileDeleteException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\IoException;
namespace Markenwerk\CommonException\IoException;

/**
* Class FileDeleteException
*
* @package CommonException\IoException
* @package Markenwerk\CommonException\IoException
*/
class FileDeleteException extends Base\IoException
{
Expand Down
4 changes: 2 additions & 2 deletions src/IoException/FileMoveException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\IoException;
namespace Markenwerk\CommonException\IoException;

/**
* Class FileMoveException
*
* @package CommonException\IoException
* @package Markenwerk\CommonException\IoException
*/
class FileMoveException extends Base\IoException
{
Expand Down
4 changes: 2 additions & 2 deletions src/IoException/FileNotFoundException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\IoException;
namespace Markenwerk\CommonException\IoException;

/**
* Class FileNotFoundException
*
* @package CommonException\IoException
* @package Markenwerk\CommonException\IoException
*/
class FileNotFoundException extends Base\IoException
{
Expand Down
4 changes: 2 additions & 2 deletions src/IoException/FileReadException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\IoException;
namespace Markenwerk\CommonException\IoException;

/**
* Class FileReadException
*
* @package CommonException\IoException
* @package Markenwerk\CommonException\IoException
*/
class FileReadException extends Base\IoException
{
Expand Down
4 changes: 2 additions & 2 deletions src/IoException/FileReadableException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\IoException;
namespace Markenwerk\CommonException\IoException;

/**
* Class FileReadableException
*
* @package CommonException\IoException
* @package Markenwerk\CommonException\IoException
*/
class FileReadableException extends Base\IoException
{
Expand Down
4 changes: 2 additions & 2 deletions src/IoException/FileWritableException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\IoException;
namespace Markenwerk\CommonException\IoException;

/**
* Class FileWritableException
*
* @package CommonException\IoException
* @package Markenwerk\CommonException\IoException
*/
class FileWritableException extends Base\IoException
{
Expand Down
4 changes: 2 additions & 2 deletions src/IoException/FileWriteException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\IoException;
namespace Markenwerk\CommonException\IoException;

/**
* Class FileWriteException
*
* @package CommonException\IoException
* @package Markenwerk\CommonException\IoException
*/
class FileWriteException extends Base\IoException
{
Expand Down
4 changes: 2 additions & 2 deletions src/IoException/FolderNotFoundException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\IoException;
namespace Markenwerk\CommonException\IoException;

/**
* Class FolderNotFoundException
*
* @package CommonException\IoException
* @package Markenwerk\CommonException\IoException
*/
class FolderNotFoundException extends Base\IoException
{
Expand Down
4 changes: 2 additions & 2 deletions src/IoException/FolderReadableException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\IoException;
namespace Markenwerk\CommonException\IoException;

/**
* Class FolderReadableException
*
* @package CommonException\IoException
* @package Markenwerk\CommonException\IoException
*/
class FolderReadableException extends Base\IoException
{
Expand Down
4 changes: 2 additions & 2 deletions src/IoException/FolderWritableException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\IoException;
namespace Markenwerk\CommonException\IoException;

/**
* Class FolderWritableException
*
* @package CommonException\IoException
* @package Markenwerk\CommonException\IoException
*/
class FolderWritableException extends Base\IoException
{
Expand Down
6 changes: 3 additions & 3 deletions src/NetworkException/Base/NetworkException.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace CommonException\NetworkException\Base;
namespace Markenwerk\CommonException\NetworkException\Base;

use CommonException\Base;
use Markenwerk\CommonException\Base;

/**
* Class NetworkException
*
* @package CommonException\NetworkException\Base
* @package Markenwerk\CommonException\NetworkException\Base
*/
class NetworkException extends Base\BaseException
{
Expand Down
4 changes: 2 additions & 2 deletions src/NetworkException/Base/TimeoutException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\NetworkException\Base;
namespace Markenwerk\CommonException\NetworkException\Base;

/**
* Class TimeoutException
*
* @package CommonException\NetworkException\Base
* @package Markenwerk\CommonException\NetworkException\Base
*/
class TimeoutException extends NetworkException
{
Expand Down
4 changes: 2 additions & 2 deletions src/NetworkException/ConnectionException.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace CommonException\NetworkException;
namespace Markenwerk\CommonException\NetworkException;

/**
* Class ConnectionException
*
* @package CommonException\NetworkException
* @package Markenwerk\CommonException\NetworkException
*/
class ConnectionException extends Base\NetworkException
{
Expand Down
Loading

0 comments on commit 40f2aac

Please sign in to comment.