aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus/src/vespa/messagebus/routing/errordirective.cpp
blob: 216fa448be17b44156ff4d7b2186e9d2c557b981 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "errordirective.h"
#include <vespa/vespalib/util/stringfmt.h>

using vespalib::make_string;

namespace mbus {

ErrorDirective::ErrorDirective(vespalib::stringref msg) :
    _msg(msg)
{ }

ErrorDirective::~ErrorDirective() = default;

string
ErrorDirective::toString() const
{
    return make_string("(%s)", _msg.c_str());
}

string
ErrorDirective::toDebugString() const
{
    return make_string("ErrorDirective(msg = '%s')", _msg.c_str());
}

} // mbus