WebCFace 3.1.1
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
exception.h
Go to the documentation of this file.
1#pragma once
2#ifdef WEBCFACE_MESON
3#include "webcface-config.h"
4#else
5#include "webcface/common/webcface-config.h"
6#endif
8#include <stdexcept>
9
11struct FieldBase;
12
13/*
14 * MSVCではexceptionをexportしないほうがよいらしくC4275警告を出すが、
15 * Macではexportしないとcatchできなくなる
16 *
17 */
18
25struct WEBCFACE_DLL FuncNotFound : public std::runtime_error {
26 explicit FuncNotFound(const FieldBase &base);
27};
35struct WEBCFACE_DLL Rejection : public std::runtime_error {
36 explicit Rejection(const FieldBase &base, const std::string &message);
37};
38
47struct WEBCFACE_DLL SanityError : public std::runtime_error {
48 explicit SanityError(const char *message);
49};
57struct WEBCFACE_DLL Intrusion : public std::invalid_argument {
58 explicit Intrusion(const FieldBase &base);
59};
60
71struct WEBCFACE_DLL PromiseError : public std::runtime_error {
72 explicit PromiseError(const char *message);
73};
74
80struct WEBCFACE_DLL FuncSignatureMismatch : public std::invalid_argument {
81 explicit FuncSignatureMismatch(const char *message);
82 explicit FuncSignatureMismatch(const std::string &message);
83};
84
メンバ名とデータ名を持つクラス
Definition field.h:35
Funcの実行ができなかった場合発生する例外
Definition exception.h:25
Funcにセットしようとしたパラメーターが実際の関数と一致しない場合の例外
Definition exception.h:80
自分以外のmemberのフィールドに値を設定しようとしたときに発生する例外
Definition exception.h:57
Funcの実行結果の処理中に発生した例外
Definition exception.h:71
Funcがrejectした(例外を投げた)場合の例外
Definition exception.h:35
未初期化の変数にアクセスした場合に発生する例外
Definition exception.h:47
#define WEBCFACE_DLL
Definition webcface-config.h:69
#define WEBCFACE_NS_END
Definition webcface-config.h:113
#define WEBCFACE_NS_BEGIN
Definition webcface-config.h:112