FRError

public protocol FRError : Error

This protocol is a base representation of Error object generated by FRAuth framework

  • Builds Dictionary for NSError

    Declaration

    Swift

    public func buildErrorUserInfo(errorMessage: String, additionalInfo: [String : Any]?) -> [String : Any]

    Parameters

    errorMessage

    Error message for NSError’s localized error description

    additionalInfo

    Additional information about the error (error response payload) as Dictionary with key ‘com.forgerock.auth.errorInfoKey’

    Return Value

    Dictionary containing a localized error message and optional additional error payload