#include "components/sync/engine/syncer_error.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "components/sync/engine/sync_protocol_error.h"
#include "net/base/net_errors.h"
#include "net/http/http_status_code.h"
namespace syncer {
SyncerError::SyncerError(Type type, ValueType value)
: … { … }
SyncerError SyncerError::Success() { … }
SyncerError SyncerError::NetworkError(int error_code) { … }
SyncerError SyncerError::HttpError(net::HttpStatusCode status_code) { … }
SyncerError SyncerError::ProtocolError(SyncProtocolErrorType error_type) { … }
SyncerError SyncerError::ProtocolViolationError() { … }
int SyncerError::GetNetworkErrorOrDie() const { … }
net::HttpStatusCode SyncerError::GetHttpErrorOrDie() const { … }
SyncProtocolErrorType SyncerError::GetProtocolErrorOrDie() const { … }
std::string SyncerError::ToString() const { … }
}