コード例 #1
0
        private string GetError(string exceptionMessage, ApiDetailedErrorCodes errorCode)
        {
            if (!_showErrorDetails)
            {
                exceptionMessage = errorCode.GetDescriptionValue();
            }

            var result = JsonConvert.SerializeObject(new ApiError((int)errorCode, errorCode.GetNameValue(), exceptionMessage));

            return(result);
        }
コード例 #2
0
 public ApiException(ApiDetailedErrorCodes errorCode)
 {
     ErrorCode = errorCode;
 }