aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/util/serializableexceptions.h
blob: 7edcd8b1d20b552ca3c31f9427ddf6273cc3624c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/**
 * @file serializable.h
 * @ingroup document
 *
 * @brief Interfaces to be used for serializing of objects.
 *
 * @author Thomas F. Gundersen, H�kon Humberset
 * @date 2004-03-15
 * @version $Id$
 */

#pragma once

#include <vespa/vespalib/util/exceptions.h>

namespace document {

class DeserializeException : public vespalib::IoException {
public:
    DeserializeException(const vespalib::string& msg, const vespalib::string& location = "");
    DeserializeException(const vespalib::string& msg, const vespalib::Exception& cause,
                         const vespalib::string& location = "");
    VESPA_DEFINE_EXCEPTION_SPINE(DeserializeException)
};

}