blob: 064c1b98672842b21901d3529c1589aa85a55143 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "jsonexception.h"
namespace vespalib {
VESPA_IMPLEMENT_EXCEPTION_SPINE(JsonStreamException);
JsonStreamException::JsonStreamException(stringref reason, stringref history,
stringref location, int skipStack)
: Exception(reason + (history.empty() ? "" : "\nHistory:\n" + history),
location, skipStack + 1),
_reason(reason)
{ }
JsonStreamException::~JsonStreamException() { }
}
|