blob: d00fc7f3fb14f1271c8b8aba223fbd94cbea6568 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright 2016 Yahoo Inc. 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() { }
}
|