Kyle Schoonover created AVRO-3314:
-------------------------------------
Summary: ArgumentOutOfRangeException thrown in AvroDecimal
IConvertable.ToType
Key: AVRO-3314
URL: https://issues.apache.org/jira/browse/AVRO-3314
Project: Apache Avro
Issue Type: Improvement
Components: csharp
Affects Versions: 1.11.0
Reporter: Kyle Schoonover
IConvertable.ToType is throwing an ArgumentOutOfRangeException, which is not
the correct exception to throw since the arguments being passed are not what
can cause the exception. This should be changed to an ArithmeticException,
specifically an OverflowException.
For reference: [ArithmeticException Class (System) | Microsoft
Docs|https://docs.microsoft.com/en-us/dotnet/api/system.arithmeticexception?view=net-6.0]
--
This message was sent by Atlassian Jira
(v8.20.1#820001)