/* **************************************************************************** * * StatusCode::StatusCode - */ StatusCode::StatusCode(HttpStatusCode _code, const std::string& _details, const std::string& _tag) { code = _code; reasonPhrase = httpStatusCodeString(code); details = _details; tag = _tag; }
/* **************************************************************************** * * OrionError::fill - */ void OrionError::fill(const StatusCode& sc) { code = sc.code; reasonPhrase = (sc.reasonPhrase != "")? sc.reasonPhrase : httpStatusCodeString(code); details = sc.details; }
/* **************************************************************************** * * OrionError::fill - */ void OrionError::fill(HttpStatusCode _code, const std::string& _details, const std::string& _reasonPhrase) { code = _code; reasonPhrase = _reasonPhrase != ""? _reasonPhrase : httpStatusCodeString(code); details = _details; }
/* **************************************************************************** * * OrionError::OrionError - */ OrionError::OrionError(StatusCode& sc) { code = sc.code; reasonPhrase = httpStatusCodeString(code); details = sc.details; }
/* **************************************************************************** * * OrionError::OrionError - */ OrionError::OrionError(HttpStatusCode _code, const std::string& _details, const std::string& _reasonPhrase) { code = _code; reasonPhrase = _reasonPhrase == "" ? httpStatusCodeString(code) : _reasonPhrase; details = _details; }
/* **************************************************************************** * * OrionError::OrionError - */ OrionError::OrionError(HttpStatusCode _code, const std::string& _details) { code = _code; reasonPhrase = httpStatusCodeString(code); details = _details; }
/* **************************************************************************** * * StatusCode::fill - */ void StatusCode::fill(HttpStatusCode _code, const std::string& _details) { code = _code; reasonPhrase = httpStatusCodeString(code); details = _details; }