using System;

namespace Volpe.Cafe.Utils
{
    /// <summary>
    /// Provides helper methods for throwing exceptions.
    /// </summary>
    [Serializable]
    public static class ThrowHelper
    {
        /// <summary>
        /// Throws an application exception, signifying an internal model error.
        /// </summary>
        public static void InternalModelError()
        {
            throw new ApplicationException(
                "An internal model error has occurred!!\n\n" +
                "A possible discrepancy in technology definitions, technology " +
                "paths, or manufacturer data has been detected.\n" +
                "The model cannot continue.");
        }
    }
}
