All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
WebBrowserCef::ErrorHandler Class Reference

Basic error handling for web browser. More...

#include <WebBrowserCef/ErrorHandler.hpp>

Public Types

typedef std::set< int > ErrorCodes
 

Public Member Functions

virtual void displayErrorPage (const QString &content, const QString &displayedUrl=QString(), long frameId=0)
 Display supplied content as a web page If frameId is not set, display it in browser's main frame.
 
virtual ErrorCodes ignoredErrorCodes () const
 Error codes that don't launch an error page, and instead print a console message.
 
virtual void onLoadError (long frameId, int errorCode, const QString &errorText, const QString &failedUrl)
 Called when the browser fails to load a page Default implementation displays a static error page with displayErrorPage()
 
virtual void onPluginCrashed (const QString &pluginpath)
 Called when a browser plugin crashes Default implementation displays a static error page with displayErrorPage()
 
virtual void setIgnoredErrorCodes (const ErrorCodes &codes)
 
void setPage (WebPageWeakPtr page)
 

Detailed Description

Basic error handling for web browser.