android-components / mozilla.components.browser.errorpages / ErrorType

ErrorType

enum class ErrorType (source)

Enum containing all supported error types that we can display an error page for.

Enum Values

Name Summary
UNKNOWN  
ERROR_SECURITY_SSL  
ERROR_SECURITY_BAD_CERT  
ERROR_NET_INTERRUPT  
ERROR_NET_TIMEOUT  
ERROR_CONNECTION_REFUSED  
ERROR_UNKNOWN_SOCKET_TYPE  
ERROR_REDIRECT_LOOP  
ERROR_OFFLINE  
ERROR_PORT_BLOCKED  
ERROR_NET_RESET  
ERROR_UNSAFE_CONTENT_TYPE  
ERROR_CORRUPTED_CONTENT  
ERROR_CONTENT_CRASHED  
ERROR_INVALID_CONTENT_ENCODING  
ERROR_UNKNOWN_HOST  
ERROR_NO_INTERNET  
ERROR_MALFORMED_URI  
ERROR_UNKNOWN_PROTOCOL  
ERROR_FILE_NOT_FOUND  
ERROR_FILE_ACCESS_DENIED  
ERROR_PROXY_CONNECTION_REFUSED  
ERROR_UNKNOWN_PROXY_HOST  
ERROR_SAFEBROWSING_MALWARE_URI  
ERROR_SAFEBROWSING_UNWANTED_URI  
ERROR_SAFEBROWSING_HARMFUL_URI  
ERROR_SAFEBROWSING_PHISHING_URI  

Properties

Name Summary
imageNameRes val imageNameRes: Int?
messageRes val messageRes: Int
refreshButtonRes val refreshButtonRes: Int
titleRes val titleRes: Int

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.