search for: mybaseerror

Displaying 5 results from an estimated 5 matches for "mybaseerror".

2016 Feb 03
2
[RFC] Error handling in LLVM libraries.
...edError' is a nod to this). The big difference is that you're not trying to find "the matching handler" in the set of options. Instead, the list of handlers is evaluated in order until one is found that fits, then that handler alone is executed. So if you had the following: class MyBaseError : public TypedErrorInfo<MyBaseError> {}; class MyDerivedError : public TypedErrorInfo<MyDerivedError, MyBaseError> {}; // <- MyDerivedError inherits from MyBaseError. and you wrote something like this: catchTypedErrors(std::move(Err), handleTypedError<MyBaseError>([&](s...
2016 Feb 03
2
[RFC] Error handling in LLVM libraries.
...erence is that you're not trying to find "the matching >> handler" in the set of options. Instead, the list of handlers is evaluated >> in order until one is found that fits, then that handler alone is executed. >> So if you had the following: >> >> class MyBaseError : public TypedErrorInfo<MyBaseError> {}; >> class MyDerivedError : public TypedErrorInfo<MyDerivedError, MyBaseError> >> {}; // <- MyDerivedError inherits from MyBaseError. >> >> and you wrote something like this: >> >> catchTypedErrors(std::move(E...
2016 Feb 03
6
[RFC] Error handling in LLVM libraries.
...). > The big difference is that you're not trying to find "the matching > handler" in the set of options. Instead, the list of handlers is evaluated > in order until one is found that fits, then that handler alone is executed. > So if you had the following: > > class MyBaseError : public TypedErrorInfo<MyBaseError> {}; > class MyDerivedError : public TypedErrorInfo<MyDerivedError, MyBaseError> > {}; // <- MyDerivedError inherits from MyBaseError. > > and you wrote something like this: > > catchTypedErrors(std::move(Err), > handleTypedE...
2016 Feb 03
2
[RFC] Error handling in LLVM libraries.
...39;re not trying to find "the matching >>> handler" in the set of options. Instead, the list of handlers is evaluated >>> in order until one is found that fits, then that handler alone is executed. >>> So if you had the following: >>> >>> class MyBaseError : public TypedErrorInfo<MyBaseError> {}; >>> class MyDerivedError : public TypedErrorInfo<MyDerivedError, >>> MyBaseError> {}; // <- MyDerivedError inherits from MyBaseError. >>> >>> and you wrote something like this: >>> >>> catc...
2016 Feb 03
13
[RFC] Error handling in LLVM libraries.
Hi All, I've been thinking lately about how to improve LLVM's error model and error reporting. A lack of good error reporting in Orc and MCJIT has forced me to spend a lot of time investigating hard-to-debug errors that could easily have been identified if we provided richer error information to the client, rather than just aborting. Kevin Enderby has made similar observations about the