#include <error.hxx>
parameter.
Definition at line 30 of file error.hxx.
SHA_Logger::Error::~Error |
( |
| ) |
|
|
inline |
Definition at line 34 of file error.hxx.
34 { assert(this->
writer->IsComplete()); }
std::unique_ptr< Writer > writer
SHA_Logger::Error::Error |
( |
Ostream & |
os | ) |
|
|
inlineprivate |
Definition at line 61 of file error.hxx.
std::unique_ptr< Writer > writer
std::unique_ptr< Stream > stream
rapidjson::OStreamWrapper Stream
rapidjson::PrettyWriter< Stream > Writer
Instantiate a new json writer using the stream passed as argument and write value information.
- Returns
- stream reference filled up with Error object information, error information in case of failure.
Definition at line 41 of file error.hxx.
43 std::unique_ptr<Error> builder = std::unique_ptr<Error>(
new Error(os));
44 builder->Write(file, line, message);
Use json writer passed as parameter to write iterator information.
- Returns
- stream reference filled up with Error object information, error information in case of failure.
Definition at line 53 of file error.hxx.
std::unique_ptr< Writer > writer
bool Write(const String &file, int line, const String &message)
bool SHA_Logger::Error::Write |
( |
const String & |
file, |
|
|
int |
line, |
|
|
const String & |
message |
|
) |
| |
|
inlineprivate |
Definition at line 65 of file error.hxx.
66 {
return Write(*this->
writer, file, line, message); }
std::unique_ptr< Writer > writer
bool Write(const String &file, int line, const String &message)
static bool SHA_Logger::Error::Write |
( |
Writer & |
writer, |
|
|
const String & |
file, |
|
|
int |
line, |
|
|
const String & |
message |
|
) |
| |
|
inlinestaticprivate |
Definition at line 68 of file error.hxx.
78 writer.String(
"Error: " + message);
std::unique_ptr< Writer > writer
std::unique_ptr<Stream> SHA_Logger::Error::stream |
|
private |
std::unique_ptr<Writer> SHA_Logger::Error::writer |
|
private |
The documentation for this class was generated from the following file: