25 ErrMsg =
"Stream Error: ";
28 ErrMsg +=
"An unspecified error has occurred.";
31 ErrMsg +=
"The stream is too short to perform the requested operation.";
34 ErrMsg +=
"The buffer size is not a multiple of the array element size.";
37 ErrMsg +=
"The specified offset is invalid for the current stream.";
40 ErrMsg +=
"An I/O error occurred on the file system.";
44 if (!Context.
empty()) {
This class represents lattice values for constants.
void log(raw_ostream &OS) const override
Print an error message to an output stream.
std::error_code convertToErrorCode() const override
Convert this error to a std::error_code.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool empty() const
empty - Check if the string is empty.
Base class for errors originating when parsing raw PDB files.
BinaryStreamError(stream_error_code C)
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
StringRef getErrorMessage() const
std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...