blob: 5eb277f11bbd2e0949ade781fea8b42c920f3765 (
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 Vespa.ai. 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
|