PST SDK 7.0.0.0-ebe6e713
Loading...
Searching...
No Matches
TrackerExceptions.h
Go to the documentation of this file.
1// Copyright PS-Tech B.V. All Rights Reserved.
2
3#ifndef TRACKER_EXCEPTIONS_H
4#define TRACKER_EXCEPTIONS_H
5
6#include "PstBase.h"
7#include <stdexcept>
8
9namespace PSTech
10{
11#ifndef PSTEXCEPTION_DEFINED
12#define PSTEXCEPTION_DEFINED
13
24 {
25 public:
26 explicit PSTException(const char* what);
28 PSTException(PSTException&& other) noexcept;
29 PSTException(const char* function, int line, const char* what);
30 virtual ~PSTException();
31 virtual const char* what() const;
32 virtual const char* where() const;
33 virtual const char* full_description() const;
34
35 private:
36 char* m_what;
37 char* m_where;
38 char* m_full;
39 };
40
41#endif // PSTEXCEPTION_DEFINED
42
46#define DECLARE_PST_EXCEPTION( child, parent ) \
47 class child : public parent \
48 { \
49 public: \
50 explicit child(const char* what) : parent(what) {} \
51 child(const char* function, int line, const char* what) : parent(function, line, what) {}\
52 }
53
64}
65#endif //TRACKER_EXCEPTIONS_H
#define PST_EXPORT
Definition PstBase.h:12
#define DECLARE_PST_EXCEPTION(child, parent)
Definition TrackerExceptions.h:46
AlreadyExistsException(const char *what)
Definition TrackerExceptions.h:57
HttpException(const char *what)
Definition TrackerExceptions.h:62
IOException(const char *what)
Definition TrackerExceptions.h:58
InvalidDataException(const char *what)
Definition TrackerExceptions.h:55
JSONException(const char *what)
Definition TrackerExceptions.h:63
NotFoundException(const char *what)
Definition TrackerExceptions.h:56
NotInitializedException(const char *what)
Definition TrackerExceptions.h:61
NotSupportedException(const char *what)
Definition TrackerExceptions.h:60
OutOfRangeException(const char *what)
Definition TrackerExceptions.h:59
char * m_where
Definition TrackerExceptions.h:37
PSTException(PSTException &&other) noexcept
char * m_what
Definition TrackerExceptions.h:36
PSTException(const PSTException &other)
char * m_full
Definition TrackerExceptions.h:38
PSTException(const char *what)
PSTException(const char *function, int line, const char *what)
virtual const char * what() const
virtual const char * where() const
virtual const char * full_description() const
TrackerException(const char *what)
Definition TrackerExceptions.h:54
Definition ExportedTypeConversions.h:9