nixd
Loading...
Searching...
No Matches
Exception.h
Go to the documentation of this file.
1#pragma once
2
3#include <llvm/Support/Error.h>
4
5#include <exception>
6
7namespace nixd {
8
9class LLVMErrorException : public std::exception {
10 llvm::Error E;
11
12public:
13 LLVMErrorException(llvm::Error E) : E(std::move(E)) {}
14
15 llvm::Error takeError() { return std::move(E); }
16};
17
18} // namespace nixd
LLVMErrorException(llvm::Error E)
Definition Exception.h:13
llvm::Error takeError()
Definition Exception.h:15