dxFeed Graal CXX API v9.0.0
Loading...
Searching...
No Matches

An error without a caller, reported to ErrorManager. More...

#include <ErrorManager.hpp>

Public Types

enum class  Level { ERROR , WARN , INFO }
 The level of a report. More...

Public Member Functions

std::string toString () const
 Returns a string representation of the error: the component, the location, the Java class (if any) and the message, in one line.

Public Attributes

std::uint64_t id {}
 The number of the error, from 1, increasing in the order of the reports.
std::int64_t time {}
 The time of the report, in milliseconds since the UNIX epoch (UTC).
std::uint64_t threadId {}
 The hash of the std::thread::id of the thread that reported the error.
std::string component {}
 The part of the library that reported the error, for example DXFeedSubscription.
std::string location {}
 The source file and the line of the report, for example DXFeedSubscription.cpp:42.
std::string message {}
 The message of the error. For a Java exception, the message of the Java exception.
std::string javaClassName {}
 The class of the Java exception, or an empty string when the error is not a Java exception.
std::string javaStackTrace {}
 The stack trace of the Java exception, or an empty string when the error is not a Java exception.
Level level {}
 The level of the report, the last member: a value of ErrorInfo without it gets the level of an error.

Detailed Description

An error without a caller, reported to ErrorManager.

A value: copies do not change when ErrorManager gets new errors.

Member Enumeration Documentation

◆ Level

enum class ErrorInfo::Level
strong

The level of a report.

Enumerator
ERROR 

A failure: reported by ErrorManager::report() and ErrorManager::reportException(). The default level.

WARN 

A warning: reported by ErrorManager::reportWarning(). The call that reported it went on.

INFO 

A message of the library that is not a problem, for example the line of the versions at the creation of the first endpoint.

Only the library reports it.

Member Function Documentation

◆ toString()

std::string ErrorInfo::toString ( ) const

Returns a string representation of the error: the component, the location, the Java class (if any) and the message, in one line.

A warning starts with WARN , an INFO message with INFO and has no location.

Returns
The string representation of the error.