コード例 #1
0
 public static string GetErrorDescription
 (
     IrbisException exception
 )
 {
     return(string.IsNullOrEmpty(exception.Message)
         ? GetErrorDescription(exception.ErrorCode)
         : exception.Message);
 }
コード例 #2
0
        public static string GetErrorDescription
        (
            [NotNull] IrbisException exception
        )
        {
            Sure.NotNull(exception, nameof(exception));

            return(string.IsNullOrEmpty(exception.Message)
                ? GetErrorDescription(exception.ErrorCode)
                : exception.Message);
        }