diff --git a/src/Shared/Exception/CollectionEncodingException.php b/src/Shared/Exception/CollectionEncodingException.php index b8d6cf9..a2412af 100644 --- a/src/Shared/Exception/CollectionEncodingException.php +++ b/src/Shared/Exception/CollectionEncodingException.php @@ -9,6 +9,12 @@ namespace OxidEsales\GraphQL\ConfigurationAccess\Shared\Exception; -final class CollectionEncodingException extends \Exception +use OxidEsales\GraphQL\Base\Exception\Error; + +final class CollectionEncodingException extends Error { + public function __construct() + { + parent::__construct('Error encountered while encoding collection data'); + } } diff --git a/src/Shared/Exception/InvalidCollectionException.php b/src/Shared/Exception/InvalidCollectionException.php index 6c25d81..e68feab 100644 --- a/src/Shared/Exception/InvalidCollectionException.php +++ b/src/Shared/Exception/InvalidCollectionException.php @@ -9,9 +9,9 @@ namespace OxidEsales\GraphQL\ConfigurationAccess\Shared\Exception; -use Exception; +use OxidEsales\GraphQL\Base\Exception\Error; -final class InvalidCollectionException extends Exception +final class InvalidCollectionException extends Error { public function __construct(string $value) { diff --git a/src/Shared/Exception/NoSettingsFoundException.php b/src/Shared/Exception/NoSettingsFoundException.php index 9148103..6af21c1 100644 --- a/src/Shared/Exception/NoSettingsFoundException.php +++ b/src/Shared/Exception/NoSettingsFoundException.php @@ -9,6 +9,12 @@ namespace OxidEsales\GraphQL\ConfigurationAccess\Shared\Exception; -class NoSettingsFoundException extends \Exception +use OxidEsales\GraphQL\Base\Exception\NotFound; + +class NoSettingsFoundException extends NotFound { + public function __construct(string $message = 'No settings found') + { + parent::__construct($message); + } } diff --git a/src/Shared/Exception/WrongSettingValueException.php b/src/Shared/Exception/WrongSettingValueException.php index 180ccc0..6ee931c 100644 --- a/src/Shared/Exception/WrongSettingValueException.php +++ b/src/Shared/Exception/WrongSettingValueException.php @@ -9,6 +9,12 @@ namespace OxidEsales\GraphQL\ConfigurationAccess\Shared\Exception; -final class WrongSettingValueException extends \Exception +use OxidEsales\GraphQL\Base\Exception\Error; + +final class WrongSettingValueException extends Error { + public function __construct() + { + parent::__construct('Wrong setting value'); + } } diff --git a/src/Shop/Exception/WrongSettingTypeException.php b/src/Shop/Exception/WrongSettingTypeException.php index 3d87030..e5a8214 100644 --- a/src/Shop/Exception/WrongSettingTypeException.php +++ b/src/Shop/Exception/WrongSettingTypeException.php @@ -9,6 +9,12 @@ namespace OxidEsales\GraphQL\ConfigurationAccess\Shop\Exception; -final class WrongSettingTypeException extends \Exception +use OxidEsales\GraphQL\Base\Exception\Error; + +final class WrongSettingTypeException extends Error { + public function __construct() + { + parent::__construct('Wrong setting type'); + } }