00001 <?php 00016 class TPException extends MWException { 00017 protected $msg = null; 00018 00023 public function __construct( array $msg ) { 00024 $this->msg = $msg; 00025 $wikitext = call_user_func_array( 'wfMessage', $msg )->text(); 00026 parent::__construct( $wikitext ); 00027 } 00028 00032 public function getMsg() { 00033 return $this->msg; 00034 } 00035 }