code = $code; $this->message = $message; $this->httpStatusCode = $httpStatusCode; $this->params = $params; $this->userError = $userError; parent::__construct($message, $code); } /** * Get the HTTP Status Code of the RestException * @return int HTTP Status Code */ public function getHttpStatusCode(): int { return $this->httpStatusCode; } /** * Get more information to additional information about the error * @return array additional information about the error */ public function getParams(): array { return $this->params; } /** * Get the user error flag of the RestException * @return bool user error flag */ public function getUserError(): bool { return $this->userError; } }