/** * Constructor * * @param string $msg Describes the error. * @param integer $code The code error (defined in the error class). * @param array $args Arguments used in the message that describes the error. */ public function __construct($msg, $code = 0, $args = null) { assert('is_string($msg)'); assert('is_int($code)'); $message = OneLogin_Saml2_Utils::t($msg, $args); parent::__construct($message, $code); }