Cobbletext  0.2.0
Complex text layout and rendering engine
Exception.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdexcept>
4 #include <string>
5 
6 #include "common.hpp"
7 #include "macros.h"
8 
9 namespace cobbletext {
10 
11 class COBBLETEXT_CPP_API RuntimeError : public std::runtime_error {
12 public:
13  explicit RuntimeError(const std::string & what_arg);
14  explicit RuntimeError(const char* what_arg);
15 };
16 
17 class COBBLETEXT_CPP_API LogicError : public std::logic_error {
18 public:
19  explicit LogicError(const std::string & what_arg);
20  explicit LogicError(const char* what_arg);
21 };
22 
24 public:
25  long long int code;
26  std::string message;
27 
28  explicit LibraryError(std::string message);
29  explicit LibraryError(std::string message, long long int code);
30 };
31 
32 }
cobbletext::LogicError
Definition: Exception.hpp:17
cobbletext::LibraryError
Definition: Exception.hpp:23
cobbletext::RuntimeError
Definition: Exception.hpp:11
common.hpp
macros.h
COBBLETEXT_CPP_API
#define COBBLETEXT_CPP_API
Macro for Windows C++ symbol import and export.
Definition: macros.h:33
cobbletext::LibraryError::code
long long int code
Definition: Exception.hpp:25
cobbletext
Definition: AdvanceInfo.hpp:8
cobbletext::LibraryError::message
std::string message
Definition: Exception.hpp:26