Skip to content

Commit fad1dd3

Browse files
committed
update native exception prefix
1 parent b0e572c commit fad1dd3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package/cpp/NitroSQLiteException.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
#include <exception>
44
#include <iostream>
55
#include <string>
6+
#include <optional>
67

7-
const std::string NITRO_SQLITE_EXCEPTION_PREFIX = "[NitroSQLiteException]";
8+
const std::string NITRO_SQLITE_EXCEPTION_PREFIX = "[NativeNitroSQLiteException]";
89

910
enum NitroSQLiteExceptionType {
1011
UnknownError,
@@ -35,7 +36,7 @@ class NitroSQLiteException : public std::exception {
3536
explicit NitroSQLiteException(const std::string& message) : NitroSQLiteException(NitroSQLiteExceptionType::UnknownError, message) {}
3637
NitroSQLiteException(const NitroSQLiteExceptionType& type, const char* message) : NitroSQLiteException(type, std::string(message)) {}
3738
NitroSQLiteException(const NitroSQLiteExceptionType& type, const std::string& message)
38-
: _exceptionString(NITRO_SQLITE_EXCEPTION_PREFIX + " [" + typeToString(type) + "] " + message) {}
39+
: _exceptionString(NITRO_SQLITE_EXCEPTION_PREFIX + "[" + typeToString(type) + "] " + message) {}
3940

4041
private:
4142
const std::string _exceptionString;

0 commit comments

Comments
 (0)