search for: myderivederror

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

2016 Feb 03
2
[RFC] Error handling in LLVM libraries.
...9;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>([&](std::unique_ptr<MyBaseError> B) { }), handleTypedError<...
2016 Feb 03
2
[RFC] Error handling in LLVM libraries.
...andler" 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>([&](std::unique_ptr&l...
2016 Feb 03
6
[RFC] Error handling in LLVM libraries.
...;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>([&](std::unique_ptr<MyBaseError> B) { &...
2016 Feb 03
2
[RFC] Error handling in LLVM libraries.
...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>([...
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