Is there a way to pass any meaningful message, not “std::exception” to the promise’s fail callback? In the sources I found the following “void FB::variantDeferred::reject(std::exception e) const” specification. It seems when reject is called with any exception derived from std::exception the slicing happens and the right exception’s message is lost. Is there any workaround but to pass error through success callback?
1
There are 1 best solutions below
Related Questions in FIREBREATH
- How can I fix the issue that IE plugin developed with firebreath is not valid?
- how to create a window in plugin layer starting one thread in onWindowAttached ,when this will be called
- Visual Studio 2013, error MSB8020: The build tools for Visual Studio 2010 cannot be found
- Notify ActiveX that <object> has been removed from DOM
- How does the Firebreath plugin run on Windows XP?
- Cross-compile Firebreath plugin ARM
- How does GC-mechanism in FB-2.0 release plugin-objects?
- Firebreath Plugin not loading in IE 11
- Firebreath 2.0 Plugin crashed in IE8
- FireBreath plugin doesn't draw on all plugin instances
- Are there NPAPI testing tools?
- Cross compiling firebreath targeting windows
- Why is there differences in behavior of convert_cast in firebreath 2.0 plugin method using Chrome and IE
- Authenticate website user with smart card
- 64 bit Firebreath NPAPI Plugin not registering in Windows
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
std::exceptionis simply a base class for creating exceptions in C++. You can use a number of different methods to pass a specific string back; for example, you could throw astd::runtime_error, which accepts a message.You could also subclass std::exception and provide an implementation of std::exception::what which returns a useful string representation of what you want.
FireBreath 2.0 will use the error message from e.what() when it creates the Error object. You can find this in the code, if you're curious how that works: