private static void Throw(string messageOrParamName, string message, params string[] arguments)
{
string[] args = new string[arguments.Length + 1];
arguments.CopyTo(args, 1);
args[0] = messageOrParamName;
if (messageOrParamName.IndexOf(' ') == -1)
{
string format = language[message] ?? message;
throw new CheckException(message, string.Format(format, args), args);
}
throw new CheckException(message, messageOrParamName, args);
}