TT Client Library 1.0.0
C++ library for Tandem Tales clients.
Loading...
Searching...
No Matches
tt::Error Class Reference

The error message is sent from the server to an agent if one of the agent's messages causes a problem or is incorrectly formatted. More...

#include <tt/io/Error.h>

Inheritance diagram for tt::Error:
Collaboration diagram for tt::Error:

Public Member Functions

std::string toString () const override
 Returns a string representation of this object.
std::string type () const override
 Type used for JSON deserialization.
Public Member Functions inherited from tt::Message
 Message ()
 Constructs a message.
const Client * getClient () const
 Returns the tt::Client who sent this message, or null if this message was sent by the server.
void setClient (const Client *client)
 Sets the tt::Client who sent this message.

Public Attributes

std::string message
 A message explaining the error.

Detailed Description

The error message is sent from the server to an agent if one of the agent's messages causes a problem or is incorrectly formatted.

Author
Gage Birchmeier

Member Function Documentation

◆ toString()

std::string tt::Error::toString ( ) const
overridevirtual

Returns a string representation of this object.

Returns
a string describing this object

Reimplemented from tt::Message.

◆ type()

std::string tt::Error::type ( ) const
inlineoverridevirtual

Type used for JSON deserialization.

Implements tt::Message.


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