/// <summary>
        /// Builds a GetSessions business exception.
        /// </summary>
        private GetSessionsBusinessException BuildGetSessionsBusinessException(GetSessionsBusinessException.ErrorBusinessExceptionElement[] errorBusinessExceptionElements)
        {
            // Build the business exception.
            GetSessionsBusinessException businessException = new GetSessionsBusinessException();

            businessException.ErrorMessage = String.Format("SchedulingBusinessLogicComponent.GetSessions() has thrown a GetSessions business exception. See the Errors property for details.");
            businessException.Errors       = errorBusinessExceptionElements;

            // Return the business exception.
            return(businessException);
        }
        /// <summary>
        /// Builds a GetSessions business exception.
        /// </summary>
        private GetSessionsBusinessException BuildGetSessionsBusinessException(GetSessionsBusinessException.ErrorCodes errorCode, object erroneousValue)
        {
            // Build an Error business exception element.
            GetSessionsBusinessException.ErrorBusinessExceptionElement errorBusinessExceptionElement = new GetSessionsBusinessException.ErrorBusinessExceptionElement();
            errorBusinessExceptionElement.ErrorCode      = errorCode;
            errorBusinessExceptionElement.ErroneousValue = erroneousValue;

            // Build the business exception.
            GetSessionsBusinessException businessException = this.BuildGetSessionsBusinessException(new GetSessionsBusinessException.ErrorBusinessExceptionElement[] { errorBusinessExceptionElement });

            // Return the business exception.
            return(businessException);
        }