search for: mycustomsuberror

Displaying 6 results from an estimated 6 matches for "mycustomsuberror".

2016 Feb 03
13
[RFC] Error handling in LLVM libraries.
...ss hierarchies rooted at 'TypedErrorInfoBase' with custom RTTI. E.g. // Define a new error type implicitly inheriting from TypedErrorInfoBase. class MyCustomError : public TypedErrorInfo<MyCustomError> { public: // Custom error info. }; // Define a subclass of MyCustomError. class MyCustomSubError : public TypedErrorInfo<MyCustomSubError, MyCustomError> { public: // Extends MyCustomError, adds new members. }; 3. A set of utility functions that use the custom RTTI system to inspect and handle typed errors. For example 'catchAllTypedErrors' and 'handleTypedError' coop...
2016 Feb 03
2
[RFC] Error handling in LLVM libraries.
...oBase' with custom RTTI. E.g. > > // Define a new error type implicitly inheriting from TypedErrorInfoBase. > class MyCustomError : public TypedErrorInfo<MyCustomError> { > public: > // Custom error info. > }; > > // Define a subclass of MyCustomError. > class MyCustomSubError : public TypedErrorInfo<MyCustomSubError, > MyCustomError> { > public: > // Extends MyCustomError, adds new members. > }; > > 3. A set of utility functions that use the custom RTTI system to inspect > and handle typed errors. For example 'catchAllTypedErrors' a...
2016 Feb 03
2
[RFC] Error handling in LLVM libraries.
...> >> // Define a new error type implicitly inheriting from TypedErrorInfoBase. >> class MyCustomError : public TypedErrorInfo<MyCustomError> { >> public: >> // Custom error info. >> }; >> >> // Define a subclass of MyCustomError. >> class MyCustomSubError : public TypedErrorInfo<MyCustomSubError, MyCustomError> { >> public: >> // Extends MyCustomError, adds new members. >> }; >> >> 3. A set of utility functions that use the custom RTTI system to inspect and handle typed errors. For example 'catchAllTypedEr...
2016 Feb 03
2
[RFC] Error handling in LLVM libraries.
...new error type implicitly inheriting from TypedErrorInfoBase. >>> class MyCustomError : public TypedErrorInfo<MyCustomError> { >>> public: >>> // Custom error info. >>> }; >>> >>> // Define a subclass of MyCustomError. >>> class MyCustomSubError : public TypedErrorInfo<MyCustomSubError, >>> MyCustomError> { >>> public: >>> // Extends MyCustomError, adds new members. >>> }; >>> >>> 3. A set of utility functions that use the custom RTTI system to >>> inspect and handle t...
2016 Feb 03
6
[RFC] Error handling in LLVM libraries.
...t;> >> // Define a new error type implicitly inheriting from TypedErrorInfoBase. >> class MyCustomError : public TypedErrorInfo<MyCustomError> { >> public: >> // Custom error info. >> }; >> >> // Define a subclass of MyCustomError. >> class MyCustomSubError : public TypedErrorInfo<MyCustomSubError, >> MyCustomError> { >> public: >> // Extends MyCustomError, adds new members. >> }; >> >> 3. A set of utility functions that use the custom RTTI system to inspect >> and handle typed errors. For example ...
2016 Feb 03
2
[RFC] Error handling in LLVM libraries.
...;>>> TypedErrorInfoBase. >>>> class MyCustomError : public TypedErrorInfo<MyCustomError> { >>>> public: >>>> // Custom error info. >>>> }; >>>> >>>> // Define a subclass of MyCustomError. >>>> class MyCustomSubError : public TypedErrorInfo<MyCustomSubError, >>>> MyCustomError> { >>>> public: >>>> // Extends MyCustomError, adds new members. >>>> }; >>>> >>>> 3. A set of utility functions that use the custom RTTI system to >>&...