internal static void SetCustomErrorsMode (string mode)
{
if (mode == null)
throw new RemotingException ("mode attribute is required");
// the mode is case insensitive
string m = mode.ToLower ();
if (m != "on" && m != "off" && m != "remoteonly")
throw new RemotingException ("Invalid custom error mode: " + mode);
_errorMode = m;
}
}