* @author Mike Naberezny * @license http://www.horde.org/licenses/bsd BSD * @category Horde * @package Argv */ /** * Raised if an Option instance is created with invalid or * inconsistent arguments. * * @category Horde * @package Argv * @author Chuck Hagenbuch * @author Mike Naberezny * @copyright 2010-2017 Horde LLC * @license http://www.horde.org/licenses/bsd BSD */ class Horde_Argv_OptionException extends Horde_Argv_Exception { public function __construct($msg, $option = null) { $this->optionId = (string)$option; if ($this->optionId) { parent::__construct(sprintf('option %s: %s', $this->optionId, $msg)); } else { parent::__construct($msg); } } }