aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib/src/vespa/vespalib/util/jsonexception.cpp
blob: 5c04aefe2d16dbb54be1b9cde88794e12ed3119d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Yahoo. 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() { }

}