Skip to content

Commit 0f036a2

Browse files
committed
Naming cleanup
1 parent 626ec51 commit 0f036a2

36 files changed

+162
-167
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ use Bsadnu\Exception\Base\TypeError;
3838
throw new TypeError($message);
3939
```
4040

41-
- It is really helpful to catch either the base `BaseInterface` or any other. Therefore, you can control a group of exceptions. Moreover, you may add manually as many specific interfaces as you wish.
41+
- It is really helpful to catch either the base `BaseExceptionInterface` or any other. Therefore, you can control a group of exceptions. Moreover, you may add manually as many specific interfaces as you wish.
4242

4343
## More detailed description
4444

45-
All exceptions used in this library implements `\Bsadnu\Exception\Interfaces\BaseInterface`, and extend one of the SPL extensions. This way, you have several ways of catching specific extension groups:
45+
All exceptions used in this library implements `\Bsadnu\Exception\Interfaces\BaseExceptionInterface`, and extend one of the SPL extensions. This way, you have several ways of catching specific extension groups:
4646
1. Catch all exceptions: `\Exception`
4747
2. Catch all exceptions thrown by the library:
48-
`\Bsadnu\Exception\Interfaces\BaseInterface`
48+
`\Bsadnu\Exception\Interfaces\BaseExceptionInterface`
4949
3. Catch a specific SPL exception: `\LogicException`
5050
4. Catch a specific exception thrown by the library:
5151
`\Bsadnu\Exception\Base\LogicException`

src/Base/BadFunctionCallException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace Bsadnu\Exception\Base;
44

5-
use Bsadnu\Exception\Interfaces\BaseInterface;
5+
use Bsadnu\Exception\Interfaces\BaseExceptionInterface;
66

77
/**
8-
* Class BadFunctionCallException. This exception is thrown if a callback refers to
8+
* This exception is thrown if a callback refers to
99
* an undefined function or if some arguments are missing.
1010
*
1111
* @package Bsadnu\Exception
1212
*/
13-
class BadFunctionCallException extends \BadFunctionCallException implements BaseInterface
13+
class BadFunctionCallException extends \BadFunctionCallException implements BaseExceptionInterface
1414
{
1515
}

src/Base/BadMethodCallException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace Bsadnu\Exception\Base;
44

5-
use Bsadnu\Exception\Interfaces\BaseInterface;
5+
use Bsadnu\Exception\Interfaces\BaseExceptionInterface;
66

77
/**
8-
* Class BadMethodCallException. This exception is thrown if a callback refers to
8+
* This exception is thrown if a callback refers to
99
* an undefined method or if some arguments are missing.
1010
*
1111
* @package Bsadnu\Exception
1212
*/
13-
class BadMethodCallException extends \BadMethodCallException implements BaseInterface
13+
class BadMethodCallException extends \BadMethodCallException implements BaseExceptionInterface
1414
{
1515
}

src/Base/DomainException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
namespace Bsadnu\Exception\Base;
44

5-
use Bsadnu\Exception\Interfaces\BaseInterface;
5+
use Bsadnu\Exception\Interfaces\BaseExceptionInterface;
66

77
/**
8-
* Class DomainException. This exception is thrown if a value
8+
* This exception is thrown if a value
99
* does not adhere to a defined valid data domain.
1010
*
1111
* @package Bsadnu\Exception
1212
*/
13-
class DomainException extends \DomainException implements BaseInterface
13+
class DomainException extends \DomainException implements BaseExceptionInterface
1414
{
1515
}

src/Base/InvalidArgumentException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
namespace Bsadnu\Exception\Base;
44

5-
use Bsadnu\Exception\Interfaces\BaseInterface;
5+
use Bsadnu\Exception\Interfaces\BaseExceptionInterface;
66

77
/**
8-
* Class InvalidArgumentException. This exception is thrown if an argument is not of the expected type.
8+
* This exception is thrown if an argument is not of the expected type.
99
*
1010
* @package Bsadnu\Exception
1111
*/
12-
class InvalidArgumentException extends \InvalidArgumentException implements BaseInterface
12+
class InvalidArgumentException extends \InvalidArgumentException implements BaseExceptionInterface
1313
{
1414
}

src/Base/LengthException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
namespace Bsadnu\Exception\Base;
44

5-
use Bsadnu\Exception\Interfaces\BaseInterface;
5+
use Bsadnu\Exception\Interfaces\BaseExceptionInterface;
66

77
/**
8-
* Class LengthException. This exception is thrown if a length is invalid.
8+
* This exception is thrown if a length is invalid.
99
*
1010
* @package Bsadnu\Exception
1111
*/
12-
class LengthException extends \LengthException implements BaseInterface
12+
class LengthException extends \LengthException implements BaseExceptionInterface
1313
{
1414
}

src/Base/LogicException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
namespace Bsadnu\Exception\Base;
44

5-
use Bsadnu\Exception\Interfaces\BaseInterface;
5+
use Bsadnu\Exception\Interfaces\BaseExceptionInterface;
66

77
/**
8-
* Class LogicException.
98
* This exception is thrown to represent an error in the program logic.
109
* This kind of exception should lead directly to a fix in your code.
1110
*
1211
* @package Bsadnu\Exception
1312
*/
14-
class LogicException extends \LogicException implements BaseInterface
13+
class LogicException extends \LogicException implements BaseExceptionInterface
1514
{
1615
}

src/Base/OutOfBoundsException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
namespace Bsadnu\Exception\Base;
44

5-
use Bsadnu\Exception\Interfaces\BaseInterface;
5+
use Bsadnu\Exception\Interfaces\BaseExceptionInterface;
66

77
/**
8-
* Class OutOfBoundsException.
98
* This exception is thrown if a value is not a valid key.
109
* This represents errors that cannot be detected at compile time.
1110
*
1211
* @package Bsadnu\Exception
1312
*/
14-
class OutOfBoundsException extends \OutOfBoundsException implements BaseInterface
13+
class OutOfBoundsException extends \OutOfBoundsException implements BaseExceptionInterface
1514
{
1615
}

src/Base/OutOfRangeException.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
namespace Bsadnu\Exception\Base;
44

5-
use Bsadnu\Exception\Interfaces\BaseInterface;
5+
use Bsadnu\Exception\Interfaces\BaseExceptionInterface;
66

77
/**
8-
* Class OutOfRangeException.
98
* This exception is thrown when an illegal index was requested.
109
* This represents errors that should be detected at compile time.
1110
*
1211
* @package Bsadnu\Exception
1312
*/
14-
class OutOfRangeException extends \OutOfRangeException implements BaseInterface
13+
class OutOfRangeException extends \OutOfRangeException implements BaseExceptionInterface
1514
{
1615
}

src/Base/OverflowException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
namespace Bsadnu\Exception\Base;
44

5-
use Bsadnu\Exception\Interfaces\BaseInterface;
5+
use Bsadnu\Exception\Interfaces\BaseExceptionInterface;
66

77
/**
8-
* Class OverflowException. This exception is thrown when adding an element to a full container.
8+
* This exception is thrown when adding an element to a full container.
99
*
1010
* @package Bsadnu\Exception
1111
*/
12-
class OverflowException extends \OverflowException implements BaseInterface
12+
class OverflowException extends \OverflowException implements BaseExceptionInterface
1313
{
1414
}

0 commit comments

Comments
 (0)