PlayFab.SubscriptionError.FailWithUnexpected C# (CSharp) Method

FailWithUnexpected() public static method

public static FailWithUnexpected ( string message ) : SubscriptionError
message string
return SubscriptionError
        public static SubscriptionError FailWithUnexpected(string message)
        {
            return new SubscriptionError() { Message = message, Code = ErrorCode.Unexpected };
        }
    }

Usage Example

        private static void OnSubscriptionErrorCallback(object[] data)
        {
            var message = data[0] as string;

            if (OnFailed != null)
            {
                if (message == "Invalid Title Secret Key!")
                {
                    OnFailed(SubscriptionError.InvalidSecretKey);
                }
                else
                {
                    OnFailed(SubscriptionError.FailWithUnexpected(message));
                }
            }
        }
SubscriptionError