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))); } } }
private void OutputError(Error error) { Debug.LogWarning(StatusCode.ToString(error.Code) + " " + error.Message); m_errorNotification.Show(StatusCode.ToString(error.Code) + " " + error.Message); }