© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
5 replies
shuu

❔ Is Storing Predefined Error in Database a good approach

Hey guys, if it were you, would you rather store predefined errors in database, if error happen during query process then just throw it from procedure, and inside ASP.NET Core error handling middleware, just put the message and status code that sent back from database into the response body? I'm new to this so can you guys give me some thought about this and some better alternative approaches
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Storing protobuf in the database
C#CC# / help
7mo ago
Problem storing iText7 pdf in a memoryStream
C#CC# / help
13mo ago
Storing binary files in GIT
C#CC# / help
3y ago