public static InvalidOperationException UnableToFactorize(this IPrimeFactorizer factorizer, UInt32 value) { return(new InvalidOperationException(String.Format("{0} was not able to factorize {1}", factorizer.GetType().Name, value))); }
public static InvalidOperationException UnableToDivide(this IPrimeFactorizer factorizer, UInt32 value, PoweredPrime[] factors) { return(new InvalidOperationException(String.Format("{0} was not able to divide {1} byte factors {2}", factorizer.GetType().Name, value, factors.SerializeObject()))); }