blob: e9972740bf968c6dc544d1284bb19c7bd09e7b70 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright Vespa.ai. 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();
};
}
|