discord-api-docs icon indicating copy to clipboard operation
discord-api-docs copied to clipboard

Result property of ResultException is not set in C# GameSDK

Open ryze312 opened this issue 2 years ago • 0 comments

Description

Result property is not set in constructor of exception, therefore it is always Result.Ok which prevents proper exception handling.

Steps to Reproduce

public partial class ResultException : Exception
{
        public readonly Result Result;

        public ResultException(Result result) : base(result.ToString())
        {
        }
}

Expected Behavior

Result property is set accordingly to exception type (result value)

Current Behavior

Result property is always at it's default value - Result.Ok

Screenshots/Videos

No response

Client and System Information

Artix Linux C# .NET Discord Canary GameSDK 3.2.0

ryze312 avatar Jun 30 '22 21:06 ryze312