Skip to content

Commit

Permalink
Merge pull request #4 from podolinek/master
Browse files Browse the repository at this point in the history
update exceptions logic
  • Loading branch information
jakubenglicky committed Jun 5, 2020
2 parents 19c8dd6 + a27e052 commit 71b258e
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/SmsManager/Exceptions/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

namespace jakubenglicky\SmsManager\Exceptions;

class ApiException extends \Exception
class ApiException extends SmsManagerException
{
}
2 changes: 1 addition & 1 deletion src/SmsManager/Exceptions/ContentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

namespace jakubenglicky\SmsManager\Exceptions;

class ContentException extends \Exception
class ContentException extends SmsManagerException
{
}
2 changes: 1 addition & 1 deletion src/SmsManager/Exceptions/CreditException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

namespace jakubenglicky\SmsManager\Exceptions;

class CreditException extends \Exception
class CreditException extends SmsManagerException
{
}
2 changes: 1 addition & 1 deletion src/SmsManager/Exceptions/InvalidCredentialsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

namespace jakubenglicky\SmsManager\Exceptions;

class InvalidCredentialsException extends \Exception
class InvalidCredentialsException extends SmsManagerException
{
}
2 changes: 1 addition & 1 deletion src/SmsManager/Exceptions/SenderException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

namespace jakubenglicky\SmsManager\Exceptions;

class SenderException extends \Exception
class SenderException extends SmsManagerException
{
}
12 changes: 12 additions & 0 deletions src/SmsManager/Exceptions/SmsManagerException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

/**
* Part of jakubenglicky/sms-manager
* @author Jakub Englický
*/

namespace jakubenglicky\SmsManager\Exceptions;

class SmsManagerException extends SmsManagerException
{
}
2 changes: 1 addition & 1 deletion src/SmsManager/Exceptions/TextException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

namespace jakubenglicky\SmsManager\Exceptions;

class TextException extends \Exception
class TextException extends SmsManagerException
{
}
2 changes: 1 addition & 1 deletion src/SmsManager/Exceptions/UndefinedNumberException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

namespace jakubenglicky\SmsManager\Exceptions;

class UndefinedNumberException extends \Exception
class UndefinedNumberException extends SmsManagerException
{
}
2 changes: 1 addition & 1 deletion src/SmsManager/Exceptions/UnknownMessageTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

namespace jakubenglicky\SmsManager\Exceptions;

class UnknownMessageTypeException extends \Exception
class UnknownMessageTypeException extends SmsManagerException
{
}
2 changes: 1 addition & 1 deletion src/SmsManager/Exceptions/WrongDataFormatException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@

namespace jakubenglicky\SmsManager\Exceptions;

class WrongDataFormatException extends \Exception
class WrongDataFormatException extends SmsManagerException
{
}

0 comments on commit 71b258e

Please sign in to comment.