aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/util/serializableexceptions.cpp
blob: e2d21c424c692373a06b8999c8991b45a25b4cf8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "serializableexceptions.h"

namespace document {

VESPA_IMPLEMENT_EXCEPTION_SPINE(DeserializeException);

DeserializeException::DeserializeException(const vespalib::string& msg, const vespalib::string& location)
    : IoException(msg, IoException::CORRUPT_DATA, location, 1)
{
}

DeserializeException::DeserializeException(
        const vespalib::string& msg, const vespalib::Exception& cause,
        const vespalib::string& location)
    : IoException(msg, IoException::CORRUPT_DATA, cause, location, 1)
{
}

}