internal PlayFabException(PlayFabErrorCode errorCode, string message) : base(message) { HttpCode = -1; HttpStatus = string.Empty; Error = errorCode; ErrorDetails = null; }
private static PlayFabError GeneratePfError(HttpStatusCode httpCode, PlayFabErrorCode pfErrorCode, string errorMessage) { return(new PlayFabError() { HttpCode = (int)httpCode, HttpStatus = GetResonseCodeResult(httpCode), Error = pfErrorCode, ErrorMessage = errorMessage, ErrorDetails = null }); }
public static bool InvalidLoginCredentials(this PlayFabErrorCode error) { switch (error) { case PlayFabErrorCode.InvalidAccount: case PlayFabErrorCode.InvalidEmailAddress: case PlayFabErrorCode.InvalidEmailOrPassword: case PlayFabErrorCode.InvalidPassword: case PlayFabErrorCode.InvalidUsername: case PlayFabErrorCode.InvalidUsernameOrPassword: case PlayFabErrorCode.InvalidParams: return(true); } return(false); }