mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd:Ⓜ️ Deinline these error ctors.
This commit is contained in:
parent
a6814dd696
commit
b37bb580be
2 changed files with 23 additions and 28 deletions
|
@ -137,31 +137,3 @@ ircd::m::error::error(const string_view &errcode,
|
|||
http::BAD_REQUEST, errcode, fmt, std::forward<args>(a)...
|
||||
}
|
||||
{}
|
||||
|
||||
inline
|
||||
ircd::m::error::error(std::string c)
|
||||
:http::error{http::INTERNAL_SERVER_ERROR, std::move(c)}
|
||||
{}
|
||||
|
||||
inline
|
||||
ircd::m::error::error(const http::code &c)
|
||||
:http::error{c}
|
||||
{}
|
||||
|
||||
inline
|
||||
ircd::m::error::error(const http::code &c,
|
||||
const json::members &members)
|
||||
:http::error{c, json::strung(members)}
|
||||
{}
|
||||
|
||||
inline
|
||||
ircd::m::error::error(const http::code &c,
|
||||
const json::iov &iov)
|
||||
:http::error{c, json::strung(iov)}
|
||||
{}
|
||||
|
||||
inline
|
||||
ircd::m::error::error(const http::code &c,
|
||||
const json::object &object)
|
||||
:http::error{c, std::string{object}}
|
||||
{}
|
||||
|
|
23
ircd/m/m.cc
23
ircd/m/m.cc
|
@ -963,3 +963,26 @@ ircd::m::hook::list::add(site &site)
|
|||
thread_local char
|
||||
ircd::m::error::fmtbuf[768]
|
||||
{};
|
||||
|
||||
ircd::m::error::error(std::string c)
|
||||
:http::error{http::INTERNAL_SERVER_ERROR, std::move(c)}
|
||||
{}
|
||||
|
||||
ircd::m::error::error(const http::code &c)
|
||||
:http::error{c}
|
||||
{}
|
||||
|
||||
ircd::m::error::error(const http::code &c,
|
||||
const json::members &members)
|
||||
:http::error{c, json::strung{members}}
|
||||
{}
|
||||
|
||||
ircd::m::error::error(const http::code &c,
|
||||
const json::iov &iov)
|
||||
:http::error{c, json::strung{iov}}
|
||||
{}
|
||||
|
||||
ircd::m::error::error(const http::code &c,
|
||||
const json::object &object)
|
||||
:http::error{c, std::string{object}}
|
||||
{}
|
||||
|
|
Loading…
Reference in a new issue