summaryrefslogtreecommitdiffstats
path: root/vespalog/src/vespa/log/exceptions.h
blob: 3cdb81c9e4074ee957103479be267c03f5a59d29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include <exception>
#include <string>

namespace ns_log {

/*
 * Exception thrown when parsing a log line into a LogMessage fails.
 */
class BadLogLineException : public std::exception
{
    std::string _message;
public:
    BadLogLineException(std::string message);
    ~BadLogLineException() override;
    const char *what() const noexcept override;
};

}