/**
  * Initializes this exception.
  *
  * @param \Ableron\Lib\Net\Uri $redirectUri The URI to redirect the client to
  */
 public function __construct(Uri $redirectUri)
 {
     // initialize this exception
     parent::__construct();
     // set redirect URI
     $this->redirectUri = $redirectUri;
 }
 /**
  * Initializes this exception.
  *
  * @param array $fieldNames Names of the form fields which caused the exception
  * @param string $messageKey Message key of the error message to display
  * @param array $messageParameters List of parameters used in the error message
  */
 public function __construct(array $fieldNames, string $messageKey, array $messageParameters = array())
 {
     // init exception and set message
     parent::__construct(Application::getI18nHandler()->getTranslator()->translate($messageKey, $messageParameters));
     // set field names
     $this->fieldNames = $fieldNames;
 }