aboutsummaryrefslogtreecommitdiffstats
path: root/vespalog/src/vespa/log/exceptions.h
blob: d8b8a6039532e85739eac61523a1c3a2eda99b65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Yahoo. 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;
};

}