top
|
up
|
prev
|
next
Error Struct
Definition at line
100
of
MessageBody.hpp
Constructors
Error
()
Error
(
JsonValue
* value)
Member Functions
std::unique_ptr<
JsonValue
>
ToJson
()
const
Member Variables
std::string
error
std::string
info
Constructor Details
Error Constructor
Error::Error()
Definition at line
223
of
MessageBody.cpp
:
223
:
info
(
)
,
error
(
)
224
{
225
}
Declaration at line
102
of
MessageBody.hpp
Error Constructor
Error::Error(
JsonValue
* value)
Definition at line
237
of
MessageBody.cpp
:
238
{
239
sngjson
::
json
::
FromJson
(
value
,
"info"
,
info
)
;
240
sngjson
::
json
::
FromJson
(
value
,
"error"
,
error
)
;
241
}
Declaration at line
103
of
MessageBody.hpp
Member Function Details
ToJson Member Function
std::unique_ptr<
JsonValue
> Error::ToJson()
const
Definition at line
227
of
MessageBody.cpp
:
228
{
229
std
::
unique_ptr
<
soulng
::
util
::
JsonObject
>
object
(
new
soulng
::
util
::
JsonObject
(
)
)
;
230
std
::
unique_ptr
<
soulng
::
util
::
JsonValue
>
fieldValue0
=
sngjson
::
json
::
ToJson
(
info
)
;
231
object
->
AddField
(
U"info"
,
std
::
move
(
fieldValue0
)
)
;
232
std
::
unique_ptr
<
soulng
::
util
::
JsonValue
>
fieldValue1
=
sngjson
::
json
::
ToJson
(
error
)
;
233
object
->
AddField
(
U"error"
,
std
::
move
(
fieldValue1
)
)
;
234
return
object
;
235
}
Declaration at line
104
of
MessageBody.hpp
top
|
up
|
prev
|
next