#include <src/libslic3r/FileParserError.hpp>
◆ file_parser_error() [1/2]
| Slic3r::file_parser_error::file_parser_error |
( |
const std::string & |
msg, |
|
|
const std::string & |
file, |
|
|
unsigned long |
line = 0 |
|
) |
| |
|
inline |
16 :
std::string m_filename
Definition FileParserError.hpp:35
static std::string format_what(const std::string &msg, const std::string &file, unsigned long l)
Definition FileParserError.hpp:39
unsigned long m_line
Definition FileParserError.hpp:36
std::string m_message
Definition FileParserError.hpp:34
unsigned long line() const
Definition FileParserError.hpp:31
◆ file_parser_error() [2/2]
| Slic3r::file_parser_error::file_parser_error |
( |
const std::string & |
msg, |
|
|
const boost::filesystem::path & |
file, |
|
|
unsigned long |
line = 0 |
|
) |
| |
|
inline |
◆ ~file_parser_error()
| Slic3r::file_parser_error::~file_parser_error |
( |
| ) |
|
| throw | ( | |
| ) | | |
|
inline |
◆ filename()
| std::string Slic3r::file_parser_error::filename |
( |
| ) |
const |
|
inline |
◆ format_what()
| static std::string Slic3r::file_parser_error::format_what |
( |
const std::string & |
msg, |
|
|
const std::string & |
file, |
|
|
unsigned long |
l |
|
) |
| |
|
inlinestaticprivate |
40 {
41 std::stringstream stream;
42 stream << (file.empty() ? "<unspecified file>" : file.c_str());
43 if (l > 0)
44 stream << '(' << l << ')';
45 stream << ": " << msg;
46 return stream.str();
47 }
◆ line()
| unsigned long Slic3r::file_parser_error::line |
( |
| ) |
const |
|
inline |
◆ message()
| std::string Slic3r::file_parser_error::message |
( |
| ) |
const |
|
inline |
◆ m_filename
| std::string Slic3r::file_parser_error::m_filename |
|
private |
◆ m_line
| unsigned long Slic3r::file_parser_error::m_line |
|
private |
◆ m_message
| std::string Slic3r::file_parser_error::m_message |
|
private |
The documentation for this class was generated from the following file: