* @license GNU General Public License, version 2 (GPL-2.0) * * For full copyright and license information, please see * the docs/CREDITS.txt file. * */ namespace phpbb\db\migration; /** * The migrator is responsible for applying new migrations in the correct order. */ class exception extends \Exception { /** * Extra parameters sent to exception to aid in debugging * @var array */ protected $parameters; /** * Throw an exception. * * First argument is the error message. * Additional arguments will be output with the error message. */ public function __construct() { $parameters = func_get_args(); $message = array_shift($parameters); parent::__construct($message); $this->parameters = $parameters; } /** * Output the error as a string * * @return string */ public function __toString() { return $this->message . ': ' . var_export($this->parameters, true); } /** * Get the parameters * * @return array */ public function getParameters() { return $this->parameters; } /** * Get localised message (with $user->lang()) * * @param \phpbb\user $user * @return string */ public function getLocalisedMessage(\phpbb\user $user) { $parameters = $this->getParameters(); array_unshift($parameters, $this->getMessage()); return call_user_func_array(array($user, 'lang'), $parameters); } } ption value='distro/mga3'>distro/mga3 Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* fix "current" checkbox vs "group" and "user" pull-down menusThierry Vignaud2004-02-201-4/+3
* enable to refuse network restartingThierry Vignaud2004-02-201-1/+1
* (getSagem) lookup sagem8xx modems by module rather than relying on stringsThierry Vignaud2004-02-201-1/+1
* do not detect lan interfaces when configuring modemsThierry Vignaud2004-02-201-2/+0
* updated pot filePablo Saratxaga2004-02-201-141/+301
* (add_intf) no need to handle errors, it's done by callee now in order to shareThierry Vignaud2004-02-201-5/+1
* do not horribly die at install time on errorThierry Vignaud2004-02-201-1/+13
* really fix previous button on first step: we want it at install timeThierry Vignaud2004-02-201-1/+1
* keep provider vpi/vci settings when existDamien Chaumette2004-02-201-1/+1
* *** empty log message ***Pascal Rigaux2004-02-201-1/+41
* (update_for_renumbered_partitions):Pascal Rigaux2004-02-201-9/+13
* remove debug statementThierry Vignaud2004-02-201-1/+0
* uim-anthy works ok in on-the-spot mode with KDEPablo Saratxaga2004-02-201-1/+1
* aliase Free non dégroupé 1024/256 on "Free non dégroupé 512/128" (#7615)Thierry Vignaud2004-02-201-0/+3
* Shrink code per Thierry.Stew Benedict2004-02-201-36/+12
* alias agpgart should be only for 2.6, since code doesn't allow this easily,Pascal Rigaux2004-02-202-6/+5
* 10-1mdkThierry Vignaud2004-02-201-1/+5
* fix writing aliases (fix broken speedtouch)Thierry Vignaud2004-02-201-2/+2
* *** empty log message ***Pascal Rigaux2004-02-201-1/+54
* add umask=0022 capability, and use it for security level 3Pascal Rigaux2004-02-201-4/+18
* Gnome is no good, GNOME is goodPascal Rigaux2004-02-202-2/+2
* fix warning LSB chosen implies kernel 2.4Pascal Rigaux2004-02-201-1/+1
* don't force buttons a size related to $::windowwidth since this is no more us...Guillaume Cottenceau2004-02-204-3/+4
* 10.0Guillaume Cottenceau2004-02-201-1/+1
* allow to specify the Xnest wanted resolution with --vgaGuillaume Cottenceau2004-02-201-1/+1
* Gnome icon order. Drop an unused button box.Stew Benedict2004-02-201-53/+28
* 10-0.21mdkThierry Vignaud2004-02-201-1/+11
* since no PCMCIA cards support link status notification, ifplugd shouldThierry Vignaud2004-02-191-1/+3
* updateThierry Vignaud2004-02-191-15103/+17412
* fix stringThierry Vignaud2004-02-191-1/+1
* *** empty log message ***Pascal Rigaux2004-02-191-1/+40
* use $ugtk2::current_window in place of @interactive::objects (which was unuse...Pascal Rigaux2004-02-192-8/+9
* UpdatedArkadiusz Lipiec2004-02-191-14459/+16604
* updated pot filePablo Saratxaga2004-02-1927-357468/+450095
* updated pot filePablo Saratxaga2004-02-19