-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-> BAD IDEA!
- Loading branch information
Showing
13 changed files
with
378 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace MythicalSystemsFramework\Database\Exceptions; | ||
|
||
class DatabaseException extends \Exception | ||
{ | ||
public function __construct($message, $code = 0, \Throwable $previous = null) | ||
{ | ||
parent::__construct($message, $code, $previous); | ||
} | ||
public function __toString(): string { | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
|
||
public function toString() : string { | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
namespace MythicalSystemsFramework\User\Exceptions; | ||
|
||
class UserAccountInvalidException extends \Exception | ||
{ | ||
public function __construct($message, $code = 0, \Throwable $previous = null) | ||
{ | ||
parent::__construct($message, $code, $previous); | ||
} | ||
public function __toString(): string { | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
|
||
public function toString() : string { | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace MythicalSystemsFramework\User\Exceptions; | ||
|
||
use Exception; | ||
use Throwable; | ||
|
||
class UserDeletedException extends Exception | ||
{ | ||
public function __construct($message, $code = 0, Throwable $previous = null) | ||
{ | ||
parent::__construct($message, $code, $previous); | ||
} | ||
public function __toString(): string { | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
|
||
public function toString() : string { | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace MythicalSystemsFramework\User\Exceptions; | ||
use Exception; | ||
use Throwable; | ||
class UserEmailExistsException extends Exception { | ||
public function __construct($message, $code = 0, Throwable $previous = null) { | ||
parent::__construct($message, $code, $previous); | ||
} | ||
public function __toString(): string { | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
public function toString() : string { | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace MythicalSystemsFramework\User\Exceptions; | ||
|
||
use Exception; | ||
use Throwable; | ||
|
||
class UserExistsException extends Exception | ||
{ | ||
public function __construct($message, $code = 0, Throwable $previous = null) | ||
{ | ||
parent::__construct($message, $code, $previous); | ||
} | ||
public function __toString(): string { | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
|
||
public function toString() : string { | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace MythicalSystemsFramework\User\Exceptions; | ||
|
||
use Exception; | ||
use Throwable; | ||
|
||
class UserNotFoundException extends Exception | ||
{ | ||
public function __construct($message, $code = 0, Throwable $previous = null) | ||
{ | ||
parent::__construct($message, $code, $previous); | ||
} | ||
public function __toString(): string { | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
|
||
public function toString() : string { | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace MythicalSystemsFramework\User\Exceptions; | ||
|
||
use Exception; | ||
use Throwable; | ||
|
||
class UserNotVerifiedException extends Exception | ||
{ | ||
public function __construct($message, $code = 0, Throwable $previous = null) | ||
{ | ||
parent::__construct($message, $code, $previous); | ||
} | ||
public function __toString(): string | ||
{ | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
|
||
public function toString(): string | ||
{ | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace MythicalSystemsFramework\User\Exceptions; | ||
|
||
use Exception; | ||
use Throwable; | ||
|
||
class UserPasswordWrongException extends Exception | ||
{ | ||
public function __construct($message, $code = 0, Throwable $previous = null) | ||
{ | ||
parent::__construct($message, $code, $previous); | ||
} | ||
public function __toString(): string | ||
{ | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
|
||
public function toString(): string | ||
{ | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
app/User/Exceptions/UserRequestedDataNotFoundException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace MythicalSystemsFramework\User\Exceptions; | ||
|
||
use Exception; | ||
use Throwable; | ||
|
||
class UserRequestedDataNotFoundException extends Exception | ||
{ | ||
public function __construct($message, $code = 0, Throwable $previous = null) | ||
{ | ||
parent::__construct($message, $code, $previous); | ||
} | ||
public function __toString(): string | ||
{ | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
|
||
public function toString(): string | ||
{ | ||
return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; | ||
} | ||
} |
Oops, something went wrong.