datalust / superpower

A C# parser construction toolkit with high-quality error reporting
Apache License 2.0
1.05k stars 98 forks source link

Is it normal that NaturalUInt32 raise System.OverflowException : Value was either too large or too small for a UInt32 ? #125

Closed hamdiChehdi closed 3 years ago

hamdiChehdi commented 3 years ago

i believe it should fill errorMessage instead of raise exception

hamdiChehdi commented 3 years ago

i think it work as expected, the exception happen in my code sorry

hamdiChehdi commented 3 years ago

the exception happen in my project because NaturalUInt32 don't control overflow case (more than 2^32)