WebCFace 2.9.0
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
7#include <stdexcept>
8
10struct FieldBase;
11
12/*
13 * MSVCではexceptionをexportしないほうがよいらしくC4275警告を出すが、
14 * Macではexportしないとcatchできなくなる
15 *
16 */
17
24struct WEBCFACE_DLL FuncNotFound : public std::runtime_error {
25 explicit FuncNotFound(const FieldBase &base);
26};
34struct WEBCFACE_DLL Rejection : public std::runtime_error {
35 explicit Rejection(const FieldBase &base, const std::string &message);
36};
37
46struct WEBCFACE_DLL SanityError : public std::runtime_error {
47 explicit SanityError(const char *message);
48};
56struct WEBCFACE_DLL Intrusion : public std::invalid_argument {
57 explicit Intrusion(const FieldBase &base);
58};
59
70struct WEBCFACE_DLL PromiseError : public std::runtime_error {
71 explicit PromiseError(const char *message);
72};
73
79struct WEBCFACE_DLL FuncSignatureMismatch : public std::invalid_argument {
80 explicit FuncSignatureMismatch(const char *message);
81 explicit FuncSignatureMismatch(const std::string &message);
82};
83
89struct WEBCFACE_DLL InvalidArgument : public std::invalid_argument {
90 explicit InvalidArgument(const char *message);
91 explicit InvalidArgument(const std::string &message);
92};
98struct WEBCFACE_DLL OutOfRange : public std::out_of_range {
99 explicit OutOfRange(const char *message);
100 explicit OutOfRange(const std::string &message);
101};
102
メンバ名とデータ名を持つクラス
Definition field.h:38
Funcの実行ができなかった場合発生する例外
Definition exception.h:24
Funcにセットしようとしたパラメーターが実際の関数と一致しない場合の例外
Definition exception.h:79
自分以外のmemberのフィールドに値を設定しようとしたときに発生する例外
Definition exception.h:56
その他のパラメーターエラー
Definition exception.h:89
その他のパラメーターエラー
Definition exception.h:98
Funcの実行結果の処理中に発生した例外
Definition exception.h:70
Funcがrejectした(例外を投げた)場合の例外
Definition exception.h:34
未初期化の変数にアクセスした場合に発生する例外
Definition exception.h:46
#define WEBCFACE_DLL
Definition webcface-config.h:69
#define WEBCFACE_NS_END
Definition webcface-config.h:118
#define WEBCFACE_NS_BEGIN
Definition webcface-config.h:117