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 -> StringParameters
sourceStringThe source string
stringToRenderThe string to render as provided by the cache
localeCodeThe locale code
paramsAny extra parameters that were passed along with the source string
View on GitHub