/// <summary> /// Generate an error response from a request /// </summary> /// <param name="request">request that generated error</param> /// <param name="exception">The exception from the error</param> public GCalErrorResponse(GCalFreeBusyRequest request, GCalExchangeException exception) { if (request != null) { versionId = request.VersionNumber; messageId = request.MessageId; } errorMessage = exception.Message; errorId = (int)(exception.ErrorCode); }
/// <summary> /// Generate an error response from a request /// </summary> /// <param name="request">request that generated error</param> /// <param name="exception">The exception from the error</param> public GCalErrorResponse(GCalFreeBusyRequest request, GCalExchangeException exception) { if (request != null) { versionId = request.VersionNumber; messageId = request.MessageId; } errorMessage = exception.Message; errorId = (int)(exception.ErrorCode); }