public function __construct($scope, $settingName)
 {
     if ($scope === SettingsManagerInterface::SCOPE_GLOBAL) {
         $message = sprintf('You tried to access setting "%s" but it is in the "%s" scope which means you must not use a SettingOwnerInterface object with this option.', $settingName, $scope);
     } elseif ($scope === SettingsManagerInterface::SCOPE_USER) {
         $message = sprintf('You tried to access setting "%s" but it is in the "%s" scope which means you have to pass a SettingOwnerInterface object with this option.', $settingName, $scope);
     } else {
         $message = sprintf('Wrong scope "%s" for setting "%s". Check your configuration.', $scope, $settingName);
     }
     parent::__construct($message);
 }
 public function __construct($settingName)
 {
     parent::__construct(sprintf('Unknown setting "%s"', $settingName));
 }
 public function __construct($serializerClass)
 {
     parent::__construct(sprintf('Unknown serializer class "%s"', $serializerClass));
 }