Example #1
0
 public static string GetErrorInformationString(this Rtc.Internal.RestAPI.ResourceModel.ErrorInformation This)
 {
     return(string.Format("ErrorCode {0}, Error Subcode {1}, Messaging {2}, Debug Info {3}",
                          This.Code.ToString(),
                          This.Subcode.HasValue ? This.Subcode.Value.ToString() : string.Empty,
                          This.Message,
                          This.GetDebugPropertiesAsString()));
 }
Example #2
0
        internal ErrorInformation(Rtc.Internal.RestAPI.ResourceModel.ErrorInformation errorInformation)
        {
            if (errorInformation == null)
            {
                throw new ArgumentNullException(nameof(errorInformation));
            }

            m_errorInformation = errorInformation;
        }