1using System.Collections.Generic;
2using System.ComponentModel;
19 var attributes = (IEnumerable<DescriptionAttribute>?)typeof(
ErrorCode)
20 .GetField(errorCode.ToString())
21 ?.GetCustomAttributes(typeof(DescriptionAttribute),
false);
23 return attributes?.FirstOrDefault()?.Description;
Extension methods for the ErrorCode enum.
static ? string Describe(this ErrorCode errorCode)
Describe a given errorCode .
ErrorCode
Types of Response.ErrorMessageResponses that the API may return.