blob: 64b780a56697156625d42f13b0440b73682826c4 (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SYNC_UTIL_UNRECOVERABLE_ERROR_INFO_H_
#define SYNC_UTIL_UNRECOVERABLE_ERROR_INFO_H_
// TODO(lipalani): Figure out the right location for this class so it is
// accessible outside of sync engine as well.
#pragma once
#include <string>
#include "base/location.h"
namespace browser_sync {
class UnrecoverableErrorInfo {
public:
UnrecoverableErrorInfo();
UnrecoverableErrorInfo(
const tracked_objects::Location& location,
const std::string& message);
~UnrecoverableErrorInfo();
void Reset(const tracked_objects::Location& location,
const std::string& message);
bool IsSet() const;
const tracked_objects::Location& location() const;
const std::string& message() const;
private:
tracked_objects::Location location_;
std::string message_;
bool is_set_;
};
} // namespace browser_sync
#endif // SYNC_UTIL_UNRECOVERABLE_ERROR_INFO_H_
|