Prado\Exceptions\THttpException::__construct PHP 메소드

__construct() 공개 메소드

Constructor.
public __construct ( $statusCode, $errorMessage )
    public function __construct($statusCode, $errorMessage)
    {
        $this->_statusCode = $statusCode;
        $this->setErrorCode($errorMessage);
        $errorMessage = $this->translateErrorMessage($errorMessage);
        $args = func_get_args();
        array_shift($args);
        array_shift($args);
        $n = count($args);
        $tokens = array();
        for ($i = 0; $i < $n; ++$i) {
            $tokens['{' . $i . '}'] = TPropertyValue::ensureString($args[$i]);
        }
        parent::__construct(strtr($errorMessage, $tokens));
    }