Relative Content

Tag Archive for c#error-handlingasync-await

Internal SQL Error Not Getting Caught in Async C# Controller

I have the following async method in a C# controller. If I misspell a parameter name or mismatch a data type, an error is thrown and caught as expected. If the error is thrown inside the procedure itself, it never seems to bubble up back to the controller like it does in a non async controller. In this case, the procedure is expecting a comma delimed string in the school IDs, but my toString method doesn’t actually produce that.