1 //===- RawError.h - Error extensions for raw PDB implementation -*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_DEBUGINFO_PDB_RAW_RAWERROR_H
11 #define LLVM_DEBUGINFO_PDB_RAW_RAWERROR_H
13 #include "llvm/Support/Error.h"
19 enum class raw_error_code {
27 invalid_block_address,
35 /// Base class for errors originating when parsing raw PDB files
36 class RawError : public ErrorInfo<RawError> {
39 RawError(raw_error_code C);
40 RawError(const std::string &Context);
41 RawError(raw_error_code C, const std::string &Context);
43 void log(raw_ostream &OS) const override;
44 const std::string &getErrorMessage() const;
45 std::error_code convertToErrorCode() const override;