TXErrorPolicy
@objc
public protocol TXErrorPolicy
Defines an interface for error policy classes.
Error policies define what happens when rendering faces an error. They are useful to protect the user from pages failing to load.
-
Return the error string to be displayed using all the information provided by the SDK.
Declaration
Swift
func get(sourceString: String, stringToRender: String, localeCode: String, params: [String: Any]) throws -> String
Parameters
sourceString
The source string
stringToRender
The string to render as provided by the cache
localeCode
The locale code
params
Any extra parameters that were passed along with the source string