summaryrefslogtreecommitdiffstats
path: root/staging_vespalib/src/vespa/vespalib/util/jsonexception.h
blob: 7ea1a3caaa9f33696a5d3f700f561ed073ab4986 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

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

namespace vespalib {

class JsonStreamException : public Exception {
    string _reason;
public:
    JsonStreamException(stringref reason,
                        stringref history,
                        stringref location, int skipStack = 0);
    stringref getReason() const { return _reason; }
    VESPA_DEFINE_EXCEPTION_SPINE(JsonStreamException);
    ~JsonStreamException();
};

}