Error.h (314564) | Error.h (344779) |
---|---|
1//===- Error.h - system_error extensions for Object -------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 36 unchanged lines hidden (view full) --- 45/// 46/// Having a subclass for all malformed binary files allows archive-walking 47/// code to skip malformed files without having to understand every possible 48/// way that a binary file might be malformed. 49/// 50/// Currently inherits from ECError for easy interoperability with 51/// std::error_code, but this will be removed in the future. 52class BinaryError : public ErrorInfo<BinaryError, ECError> { | 1//===- Error.h - system_error extensions for Object -------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 36 unchanged lines hidden (view full) --- 45/// 46/// Having a subclass for all malformed binary files allows archive-walking 47/// code to skip malformed files without having to understand every possible 48/// way that a binary file might be malformed. 49/// 50/// Currently inherits from ECError for easy interoperability with 51/// std::error_code, but this will be removed in the future. 52class BinaryError : public ErrorInfo<BinaryError, ECError> { |
53 virtual void anchor(); |
|
53public: 54 static char ID; 55 BinaryError() { 56 // Default to parse_failed, can be overridden with setErrorCode. 57 setErrorCode(make_error_code(object_error::parse_failed)); 58 } 59}; 60 --- 32 unchanged lines hidden --- | 54public: 55 static char ID; 56 BinaryError() { 57 // Default to parse_failed, can be overridden with setErrorCode. 58 setErrorCode(make_error_code(object_error::parse_failed)); 59 } 60}; 61 --- 32 unchanged lines hidden --- |