/** * Constructs an <code>ExitStatusException</code>. * @param null|int|string $arg1 * @param int $arg2 * @param Location $arg3 */ public function __construct($arg1 = null, $arg2 = 0, Location $arg3 = null) { $methodArgsNum = func_num_args(); if ($methodArgsNum === 1) { parent::__construct(); $this->code = (int) $arg1; } elseif ($methodArgsNum === 2 && is_string($arg1) && is_int($arg2)) { parent::__construct($arg1); $this->code = $arg2; } elseif ($methodArgsNum === 3 && is_string($arg1) && is_int($arg2)) { parent::__construct($arg1, $arg3); $this->code = $arg2; } }
/** * Constructor, generates an Exception Message. */ public function __construct() { parent::__construct('Build was not executed yet'); }
/** * Constructor, generates an Exception Message. * * @param Xinc_Project $project * @param int $buildTime */ public function __construct(Project $project, $buildTime) { parent::__construct('Build "' . $project->getName() . '" ' . 'with timestamp ' . $buildTime . ' was not found.'); }
/** * Constructor, generates an Exception Message. * * @param Xinc_Project $project * @param int $buildTime */ public function __construct(Project $project, $buildTime) { parent::__construct('Build of "' . $project->getName() . '" ' . ' with timestamp: ' . $buildTime . ' could not be serialized.'); }