summaryrefslogtreecommitdiff
path: root/libdbpp/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/error.h')
-rw-r--r--libdbpp/error.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/libdbpp/error.h b/libdbpp/error.h
index 6c162f9..8245ea9 100644
--- a/libdbpp/error.h
+++ b/libdbpp/error.h
@@ -20,27 +20,27 @@ namespace DB {
/// Exception thrown on an attempt to convert betweem incompatible types.
class DLL_PUBLIC InvalidConversion : public AdHoc::Exception<Error> {
- public:
- /// Create a new InvalidConversion exception with the names of the conversion types.
- /// @param from Source type
- /// @param to Destination type
- InvalidConversion(const char * const from, const char * const to);
-
- private:
- std::string message() const noexcept override;
- const std::string from;
- const std::string to;
+ public:
+ /// Create a new InvalidConversion exception with the names of the conversion types.
+ /// @param from Source type
+ /// @param to Destination type
+ InvalidConversion(const char * const from, const char * const to);
+
+ private:
+ std::string message() const noexcept override;
+ const std::string from;
+ const std::string to;
};
/// Exception thrown when a null value occurs when reading into a non-optional value.
class DLL_PUBLIC UnexpectedNullValue : public AdHoc::Exception<Error> {
- public:
- /// Create a new UnexpectedNullValue given the source type name.
- explicit UnexpectedNullValue(const char * const from);
+ public:
+ /// Create a new UnexpectedNullValue given the source type name.
+ explicit UnexpectedNullValue(const char * const from);
- private:
- std::string message() const noexcept override;
- const char * to;
+ private:
+ std::string message() const noexcept override;
+ const char * to;
};
}