Skip to content

Conversation

@tamasvajk
Copy link
Contributor

No description provided.

@github-actions github-actions bot added the C# label Nov 14, 2024
Comment on lines +186 to +189
catch (Exception ex) // lgtm[cs/catch-of-all-exceptions]
{
ExtractionError($"Uncaught exception. {ex.Message}", null, CreateLocation(), ex.StackTrace);
}

Check notice

Code scanning / CodeQL

Generic catch clause Note

Generic catch clause.
Comment on lines +437 to +459
catch (Exception ex) // lgtm[cs/catch-of-all-exceptions]
{
Message message;

if (node is not null)
{
message = Message.Create(this, ex.Message, node, ex.StackTrace);
}
else if (symbol is not null)
{
message = Message.Create(this, ex.Message, symbol, ex.StackTrace);
}
else if (ex is InternalError ie)
{
message = new Message(ie.Text, ie.EntityText, CreateLocation(ie.Location), ex.StackTrace);
}
else
{
message = new Message($"Uncaught exception. {ex.Message}", null, CreateLocation(), ex.StackTrace);
}

ExtractionError(message);
}

Check notice

Code scanning / CodeQL

Generic catch clause Note

Generic catch clause.
@tamasvajk tamasvajk marked this pull request as ready for review November 14, 2024 14:40
@tamasvajk tamasvajk requested a review from a team as a code owner November 14, 2024 14:40
@michaelnebel michaelnebel self-requested a review November 15, 2024 08:27
michaelnebel
michaelnebel previously approved these changes Nov 15, 2024
Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice @tamasvajk !

Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@tamasvajk tamasvajk merged commit e081b9a into github:main Nov 15, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants