Skip to content

Commit 7f56678

Browse files
committed
Add _t suffix to class not_null_exception
1 parent 745381c commit 7f56678

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/flex-write.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void write_null(db_copy_mgr_t<db_deleter_by_type_and_id_t> *copy_mgr,
3939
flex_table_column_t const &column)
4040
{
4141
if (column.not_null()) {
42-
throw not_null_exception{
42+
throw not_null_exception_t{
4343
fmt::format("Can not add NULL to column '{}' declared NOT NULL.",
4444
column.name()),
4545
&column};

src/flex-write.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
class expire_tiles_t;
2222

23-
class not_null_exception : public std::runtime_error
23+
class not_null_exception_t : public std::runtime_error
2424
{
2525
public:
26-
not_null_exception(std::string const &message,
26+
not_null_exception_t(std::string const &message,
2727
flex_table_column_t const *column)
2828
: std::runtime_error(message), m_column(column)
2929
{}
@@ -32,7 +32,7 @@ class not_null_exception : public std::runtime_error
3232

3333
private:
3434
flex_table_column_t const *m_column;
35-
}; // class not_null_exception
35+
}; // class not_null_exception_t
3636

3737
void flex_write_column(lua_State *lua_state,
3838
db_copy_mgr_t<db_deleter_by_type_and_id_t> *copy_mgr,

src/output-flex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ int output_flex_t::table_insert()
778778
}
779779
}
780780
table_connection.increment_insert_counter();
781-
} catch (not_null_exception const &e) {
781+
} catch (not_null_exception_t const &e) {
782782
copy_mgr->rollback_line();
783783
lua_pushboolean(lua_state(), false);
784784
lua_pushliteral(lua_state(), "null value in not null column.");

0 commit comments

Comments
 (0)