Exemplo n.º 1
0
 public static string GetErrorCode(WWWResponse.LocalErrorStatus localErrorStatus)
 {
     if (localErrorStatus == WWWResponse.LocalErrorStatus.LOCAL_ERROR_TIMEOUT)
     {
         return("LOCAL_ERROR_TIMEOUT");
     }
     if (localErrorStatus == WWWResponse.LocalErrorStatus.LOCAL_ERROR_WWW)
     {
         return("LOCAL_ERROR_WWW");
     }
     if (localErrorStatus != WWWResponse.LocalErrorStatus.LOCAL_ERROR_JSONPARSE)
     {
         return(string.Empty);
     }
     return("LOCAL_ERROR_JSONPARSE");
 }
 public WebAPIException(WWWResponse.LocalErrorStatus status, string message) : base(message)
 {
     this.responseDataError = null;
     this.localErrorStatus  = status;
 }
 public WebAPIException(WWWResponse.LocalErrorStatus status)
 {
     this.responseDataError = null;
     this.localErrorStatus  = status;
 }
 public WebAPIException(WebAPI.ResponseDataErr response, string message) : base(message)
 {
     this.responseDataError = response;
     this.localErrorStatus  = WWWResponse.LocalErrorStatus.NONE;
 }
 public WebAPIException(WebAPI.ResponseDataErr response)
 {
     this.responseDataError = response;
     this.localErrorStatus  = WWWResponse.LocalErrorStatus.NONE;
 }