/// <summary>
        /// Raise an error.
        /// </summary>
        public void Error(string message)
        {
            var error = new GenerationError {
                ErrorText = message
            };

            this.Errors.Add(error);
        }
        /// <summary>
        /// Raise a warning.
        /// </summary>
        public void Warning(string message)
        {
            var error = new GenerationError
            {
                ErrorText = message,
                IsWarning = true
            };

            this.Errors.Add(error);
        }