Пример #1
0
 public override string ToString()
 {
     if (!string.IsNullOrEmpty(Message))
     {
         if (InnerError != null)
         {
             return(string.Format("Error({0}): {1}, InnerError = [{2}]", Code, Message, InnerError.ToString()));
         }
         else
         {
             return(string.Format("Error({0}): {1}", Code, Message));
         }
     }
     else
     {
         if (InnerError != null)
         {
             return(string.Format("Error({0}): {1}, InnerError = [{2}]", Code, StatusCode.ToString(Code), InnerError.ToString()));
         }
         else
         {
             return(string.Format("Error({0}): {1}", Code, StatusCode.ToString(Code)));
         }
     }
 }
Пример #2
0
 private void OutputError(Error error)
 {
     Debug.LogWarning(StatusCode.ToString(error.Code) + " " + error.Message);
     m_errorNotification.Show(StatusCode.ToString(error.Code) + " " + error.Message);
 }