26#ifndef ROUTER_SRC_MYSQL_REST_SERVICE_SRC_MRS_DATABASE_JSON_MAPPER_VIEW_ERRORS_H_
27#define ROUTER_SRC_MYSQL_REST_SERVICE_SRC_MRS_DATABASE_JSON_MAPPER_VIEW_ERRORS_H_
38 :
std::runtime_error(
"Invalid input JSON document: " + msg) {}
42 const std::string &field) {
48 const std::string &field) {
50 "` missing in JSON input");
58 const std::string &column) {
60 "` does not match referenced ID");
68 const std::string &field =
"") {
73 throw JSONInputError(
"Invalid value for \"" + field +
"\" for table `" +
74 table +
"` in JSON input");
78 const std::string &field) {
79 throw JSONInputError(
"Duplicate keys in \"" + field +
"\" for table `" +
80 table +
"` in JSON input");
86 :
std::runtime_error(msg) {}
91 "Data Mapping View does not allow INSERT for table `" +
table +
"`");
95 const std::string &field =
"") {
98 "Data Mapping View does not allow UPDATE for table `" +
table +
"`");
101 "Data Mapping View does not allow UPDATE for field \"" + field +
102 "\" of table `" +
table +
"`");
108 "Data Mapping View does not allow DELETE for a referenced table");
111 "Data Mapping View does not allow DELETE for table `" +
table +
"`");
DataMappingViewError(const std::string &msg)
Definition: errors.h:85
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
void throw_missing_id(const std::string &table)
Definition: errors.h:53
void throw_ENOUPDATE(const std::string &table, const std::string &field="")
Definition: errors.h:94
void throw_mismatching_id(const std::string &table, const std::string &column)
Definition: errors.h:57
void throw_ENODELETE(const std::string &table="")
Definition: errors.h:105
void throw_invalid_type(const std::string &table, const std::string &field="")
Definition: errors.h:67
void throw_duplicate_key(const std::string &table, const std::string &field)
Definition: errors.h:77
void throw_missing_field(const std::string &table, const std::string &field)
Definition: errors.h:47
void throw_read_only()
Definition: errors.h:114
void throw_ENOINSERT(const std::string &table)
Definition: errors.h:89
void throw_immutable_id(const std::string &table)
Definition: errors.h:63
void throw_invalid_field(const std::string &table, const std::string &field)
Definition: errors.h:41
Definition: authorize_manager.h:48
Definition: gcs_xcom_synode.h:64