[ 
https://issues.apache.org/jira/browse/IGNITE-23786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17904081#comment-17904081
 ] 

Pavel Tupitsyn commented on IGNITE-23786:
-----------------------------------------

Merged to main: 
[fa10d3a49a97ffa2d051c682779ac15640e85129|https://github.com/apache/ignite-3/commit/fa10d3a49a97ffa2d051c682779ac15640e85129]

> .NET: OverflowException on ErrorGroups.Common.Internal
> ------------------------------------------------------
>
>                 Key: IGNITE-23786
>                 URL: https://issues.apache.org/jira/browse/IGNITE-23786
>             Project: Ignite
>          Issue Type: Bug
>          Components: .NET, platforms
>            Reporter: Pavel Tupitsyn
>            Assignee: Pavel Tupitsyn
>            Priority: Major
>              Labels: ignite-3, important
>             Fix For: 3.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Add the following to *ErrorGroupTests*:
> {code}
>         [Test]
>         public void TestExceptionProperties()
>         {
>             var ex = new IgniteException(Guid.Empty, 
> ErrorGroups.Common.Internal, "msg");
>             Assert.AreEqual(ErrorGroups.Common.Internal, ex.Code);
>             Assert.AreEqual(-1, ex.ErrorCode);
>             Assert.AreEqual("CMN", ex.GroupName);
>             Assert.AreEqual("IGN-CMN-1", ex.CodeAsString);
>         }
> {code}
> Result:
> {code}
> System.OverflowException : Arithmetic operation resulted in an overflow.
>    at Apache.Ignite.ErrorGroups.GetErrorCode(Int32 fullCode) in 
> /home/pavel/w/ignite-3/modules/platforms/dotnet/Apache.Ignite/ErrorGroups.cs:line
>  51
>    at Apache.Ignite.IgniteException.get_ErrorCode() in 
> /home/pavel/w/ignite-3/modules/platforms/dotnet/Apache.Ignite/IgniteException.cs:line
>  65
>    at Apache.Ignite.Tests.ErrorGroupTests.TestExceptionProperties() in 
> /home/pavel/w/ignite-3/modules/platforms/dotnet/Apache.Ignite.Tests/ErrorGroupTests.cs:line
>  197
>    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** 
> arguments, Signature sig, Boolean isConstructor)
>    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, 
> BindingFlags invokeAttr)
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to