MCPcopy Create free account
hub / github.com/MapServer/MapServer / exception

Class exception

renderers/agg/include/agg_svg_exception.h:31–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace svg
30{
31 class exception
32 {
33 public:
34 ~exception()
35 {
36 delete [] m_msg;
37 }
38
39 exception() : m_msg(0) {}
40
41 exception(const char* fmt, ...) :
42 m_msg(0)
43 {
44 if(fmt)
45 {
46 m_msg = new char [4096];
47 va_list arg;
48 va_start(arg, fmt);
49 vsprintf(m_msg, fmt, arg);
50 va_end(arg);
51 }
52 }
53
54 exception(const exception& exc) :
55 m_msg(exc.m_msg ? new char[strlen(exc.m_msg) + 1] : 0)
56 {
57 if(m_msg) strcpy(m_msg, exc.m_msg);
58 }
59
60 const char* msg() const { return m_msg; }
61
62 private:
63 char* m_msg;
64 };
65
66}
67}

Callers 13

parseMethod · 0.85
start_elementMethod · 0.85
parse_colorFunction · 0.85
parse_rectMethod · 0.85
parse_polyMethod · 0.85
parse_transform_argsFunction · 0.85
parse_matrixMethod · 0.85
parse_rotateMethod · 0.85
end_pathMethod · 0.85
pop_attrMethod · 0.85
parse_pathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected