summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-02-08 11:37:33 +0100
committerTor Egge <Tor.Egge@online.no>2023-02-08 11:37:33 +0100
commit718a51128c56d52a9fc47ad300c8c6c227c648b5 (patch)
tree0b877849bc03f2a84c8687b9f2d98912fa4c956e /document
parent46d6f353d8aea4b1c20329da427b3b8aee335ad4 (diff)
Avoid implicit-exception-spec-mismatch warning.
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/base/exceptions.cpp4
-rw-r--r--document/src/vespa/document/base/exceptions.h6
2 files changed, 8 insertions, 2 deletions
diff --git a/document/src/vespa/document/base/exceptions.cpp b/document/src/vespa/document/base/exceptions.cpp
index b0c2cf05eb1..f1ea0645eb8 100644
--- a/document/src/vespa/document/base/exceptions.cpp
+++ b/document/src/vespa/document/base/exceptions.cpp
@@ -61,6 +61,8 @@ DataTypeNotFoundException::DataTypeNotFoundException(const vespalib::string& nam
{
}
+DataTypeNotFoundException::~DataTypeNotFoundException() = default;
+
AnnotationTypeNotFoundException::AnnotationTypeNotFoundException(
int id, const vespalib::string& location)
: Exception(vespalib::make_string("Data type with id %d not found", id),
@@ -68,6 +70,8 @@ AnnotationTypeNotFoundException::AnnotationTypeNotFoundException(
{
}
+AnnotationTypeNotFoundException::~AnnotationTypeNotFoundException() = default;
+
FieldNotFoundException::
FieldNotFoundException(const vespalib::string& fieldName,
const vespalib::string& location)
diff --git a/document/src/vespa/document/base/exceptions.h b/document/src/vespa/document/base/exceptions.h
index 6e91b5c08ee..4358daed5ec 100644
--- a/document/src/vespa/document/base/exceptions.h
+++ b/document/src/vespa/document/base/exceptions.h
@@ -22,7 +22,7 @@ public:
InvalidDataTypeException(const DataType &actual,
const DataType &wanted,
const vespalib::string & location);
- virtual ~InvalidDataTypeException();
+ ~InvalidDataTypeException() override;
const DataType& getActualDataType() const { return _actual; }
const DataType& getExpectedDataType() const { return _expected; }
@@ -48,7 +48,7 @@ public:
InvalidDataTypeConversionException(const DataType &actual,
const DataType &wanted,
const vespalib::string & location);
- virtual ~InvalidDataTypeConversionException() throw();
+ ~InvalidDataTypeConversionException() override;
const DataType& getActualDataType() const { return _actual; }
const DataType& getExpectedDataType() const { return _expected; }
@@ -93,6 +93,7 @@ class DataTypeNotFoundException : public vespalib::Exception
public:
DataTypeNotFoundException(int id, const vespalib::string& location);
DataTypeNotFoundException(const vespalib::string& name, const vespalib::string& location);
+ ~DataTypeNotFoundException() override;
VESPA_DEFINE_EXCEPTION_SPINE(DataTypeNotFoundException);
};
@@ -107,6 +108,7 @@ class AnnotationTypeNotFoundException : public vespalib::Exception
{
public:
AnnotationTypeNotFoundException(int id, const vespalib::string& location);
+ ~AnnotationTypeNotFoundException() override;
VESPA_DEFINE_EXCEPTION_SPINE(AnnotationTypeNotFoundException);
};