phaser-server  0.0.2
Public Member Functions | List of all members
Warning Class Reference

An "warning" response with a text diagnostic. More...

#include <response.h>

Inheritance diagram for Warning:
Inheritance graph
[legend]
Collaboration diagram for Warning:
Collaboration graph
[legend]

Public Member Functions

 Warning (const char *)
 A warning response with a diagnostic using the JSON tag "message". More...
 
- Public Member Functions inherited from TextResponse
 TextResponse (Response_t, const char *=0, const char *=0)
 Construct an instance. More...
 
- Public Member Functions inherited from JsonResponse
 JsonResponse (Response_t type)
 Construct with the outcome enumeration.
 
std::string operator() (void)
 Get the JSON encoded response string.
 

Additional Inherited Members

- Public Types inherited from JsonResponse
enum class  Response_t { R_ok , R_warning , R_error }
 Status of processed request.
 
- Protected Member Functions inherited from TextResponse
virtual void Create (JSONObject &) override
 Add the optional text message if one was provided. More...
 

Detailed Description

An "warning" response with a text diagnostic.

Note
The diagnostic JSON label is "message".

Constructor & Destructor Documentation

◆ Warning()

Warning::Warning ( const char *  text)

A warning response with a diagnostic using the JSON tag "message".

Parameters
text- A diagnostic explaining the problem encountered.

The documentation for this class was generated from the following files: