Skip to content

Commit e993aa6

Browse files
committed
Initial code version
1 parent e6464d1 commit e993aa6

12 files changed

+137
-1
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 KattSoftware
3+
Copyright (c) 2021 KattSoftware dev team
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# php-extensions
2+
3+
This PHP library aims to give you a list of general usage PHP exceptions for your projects.
4+
5+
Now you don't have to create anymore a `DatabaseException` class for each of your project's components. Just install this package and you will have the globally-available exception `\DatabaseExcepton` - and more others!
6+
7+
## Installation
8+
9+
To install `php-exceptions`, just use the following [composer](https://getcomposer.org/) command:
10+
11+
```
12+
composer require kattsoftware/php-exceptions
13+
```
14+
15+
That's all! The package is compatible with PHP >= 5.3.
16+
17+
## What goodies are included?
18+
19+
You can explore the list of included exceptions by browsing the [`src`](src) directory.
20+
21+
## License
22+
23+
The library is licensed under the MIT License (MIT). See the `LICENSE` file for more information.
24+
25+
Copyright (c) KattSoftware dev team.

composer.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "kattsoftware/php-exceptions",
3+
"description": "General usage PHP exceptions for your projects",
4+
"type": "library",
5+
"license": "MIT",
6+
"autoload": {
7+
"classmap": ["src/"]
8+
},
9+
"require": {
10+
"php": ">=5.3"
11+
}
12+
}

src/AuthenticationException.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
/**
4+
* Part of the kattsoftware/php-exceptions, a collection of general usage exceptions.
5+
*
6+
* This content is released under the MIT License (MIT).
7+
* @see LICENSE file
8+
*/
9+
class AuthenticationException extends \Exception
10+
{
11+
}

src/AuthorizationException.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
/**
4+
* Part of the kattsoftware/php-exceptions, a collection of general usage exceptions.
5+
*
6+
* This content is released under the MIT License (MIT).
7+
* @see LICENSE file
8+
*/
9+
class AuthorizationException extends \Exception
10+
{
11+
}

src/CommunicationException.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
/**
4+
* Part of the kattsoftware/php-exceptions, a collection of general usage exceptions.
5+
*
6+
* This content is released under the MIT License (MIT).
7+
* @see LICENSE file
8+
*/
9+
class CommunicationException extends \Exception
10+
{
11+
}

src/DatabaseException.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
/**
4+
* Part of the kattsoftware/php-exceptions, a collection of general usage exceptions.
5+
*
6+
* This content is released under the MIT License (MIT).
7+
* @see LICENSE file
8+
*/
9+
class DatabaseException extends \Exception
10+
{
11+
}

src/EntityException.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
/**
4+
* Part of the kattsoftware/php-exceptions, a collection of general usage exceptions.
5+
*
6+
* This content is released under the MIT License (MIT).
7+
* @see LICENSE file
8+
*/
9+
class EntityException extends \Exception
10+
{
11+
}

src/IOException.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
/**
4+
* Part of the kattsoftware/php-exceptions, a collection of general usage exceptions.
5+
*
6+
* This content is released under the MIT License (MIT).
7+
* @see LICENSE file
8+
*/
9+
class IOException extends \Exception
10+
{
11+
}

src/ProcessingException.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
/**
4+
* Part of the kattsoftware/php-exceptions, a collection of general usage exceptions.
5+
*
6+
* This content is released under the MIT License (MIT).
7+
* @see LICENSE file
8+
*/
9+
class ProcessingException extends \Exception
10+
{
11+
}

0 commit comments

Comments
 (0)