Open
Description
Consider this awesome code:
var g = 0xffffffffffffffff;
var bi = new BigInteger(g);
bi = BigInteger.Pow(bi, Int32.MaxValue);
Consider this awesome exception:
System.OverflowException: 'Arithmetic operation resulted in an overflow.'
Consider this documentation:
https://learn.microsoft.com/en-us/dotnet/api/system.numerics.biginteger.pow?view=net-8.0
Specifically this incomplete part:
Exceptions
ArgumentOutOfRangeException
exponent is negative.
Is this a central location describing exceptions that may be thrown across all of BigInteger, or should all methods be documented separately?