chromium/third_party/unrar/src/errhnd.cpp

// NOTE(vakh): The process.h file needs to be included first because "rar.hpp"
// defines certain macros that cause symbol redefinition errors
#if defined(UNRAR_NO_EXCEPTIONS)
#include "base/check.h"
#include "base/process/process.h"
#endif  // defined(UNRAR_NO_EXCEPTIONS)
#include "rar.hpp"

#include <ostream>

void ErrorHandler::Clean()
{}


void ErrorHandler::MemoryError()
{}


void ErrorHandler::OpenError(const std::wstring &FileName)
{}


void ErrorHandler::CloseError(const std::wstring &FileName)
{}


void ErrorHandler::ReadError(const std::wstring &FileName)
{}


void ErrorHandler::AskRepeatRead(const std::wstring &FileName,bool &Ignore,bool &Retry,bool &Quit)
{}


void ErrorHandler::WriteError(const std::wstring &ArcName,const std::wstring &FileName)
{}


#ifdef _WIN_ALL
void ErrorHandler::WriteErrorFAT(const std::wstring &FileName)
{
  SysErrMsg();
  uiMsg(UIERROR_NTFSREQUIRED,FileName);
#if !defined(SILENT) && !defined(SFX_MODULE) || defined(RARDLL)
  Exit(RARX_WRITE);
#endif
}
#endif


bool ErrorHandler::AskRepeatWrite(const std::wstring &FileName,bool DiskFull)
{}


void ErrorHandler::SeekError(const std::wstring &FileName)
{}


void ErrorHandler::GeneralErrMsg(const wchar *fmt,...)
{}


void ErrorHandler::MemoryErrorMsg()
{}


void ErrorHandler::OpenErrorMsg(const std::wstring &FileName)
{}


void ErrorHandler::OpenErrorMsg(const std::wstring &ArcName,const std::wstring &FileName)
{}


void ErrorHandler::CreateErrorMsg(const std::wstring &FileName)
{}


void ErrorHandler::CreateErrorMsg(const std::wstring &ArcName,const std::wstring &FileName)
{}


void ErrorHandler::ReadErrorMsg(const std::wstring &FileName)
{}


void ErrorHandler::ReadErrorMsg(const std::wstring &ArcName,const std::wstring &FileName)
{}


void ErrorHandler::WriteErrorMsg(const std::wstring &ArcName,const std::wstring &FileName)
{}


void ErrorHandler::ArcBrokenMsg(const std::wstring &ArcName)
{}


void ErrorHandler::ChecksumFailedMsg(const std::wstring &ArcName,const std::wstring &FileName)
{}


void ErrorHandler::UnknownMethodMsg(const std::wstring &ArcName,const std::wstring &FileName)
{}


void ErrorHandler::Exit(RAR_EXIT ExitCode)
{}


void ErrorHandler::SetErrorCode(RAR_EXIT Code)
{}


#ifdef _WIN_ALL
BOOL __stdcall ProcessSignal(DWORD SigType)
#else
#if defined(__sun)
extern "C"
#endif
void _stdfunction ProcessSignal(int SigType)
#endif
{}


void ErrorHandler::SetSignalHandlers(bool Enable)
{}


void ErrorHandler::Throw(RAR_EXIT Code)
{}


bool ErrorHandler::GetSysErrMsg(std::wstring &Msg)
{}


void ErrorHandler::SysErrMsg()
{}


int ErrorHandler::GetSystemErrorCode()
{}


void ErrorHandler::SetSystemErrorCode(int Code)
{}