custom-exceptions
Save method override and exceptions management
Currently, I am developing an application which domain model should prevent objects duplication according the equality or not of some object fields.[详细]
2023-01-19 14:00 分类:问答What type of exception to throw in this case?
I\'m writing a c# application which uses automation to control another program. Naturally that program must be running for my program to work. When my program looks for the application and can\'t find[详细]
2023-01-11 21:32 分类:问答Exception design: Custom exceptions reading data from file?
I have a method that reads data from a comma separated text file and constructs a list of entity objects, let\'s say customers.[详细]
2022-12-25 08:46 分类:问答Catch Multiple Custom Exceptions? - C++
I\'m a student in my first C++ programming class, and I\'m working on a project where we have to create multiple custom exception classes, and then in one of our event handlers, use a try/catch block[详细]
2022-12-24 19:19 分类:问答C# Webservice: Throw exception with extra properties in JSON
I have a webservice written in C#. When errors occur on the server, I would like to inform the user client side. This works fine by throwing exceptions server side, which is then sent to my error hand[详细]
2022-12-21 03:35 分类:问答asp.net mvc custom exception filter to force a return of full view, not partial
I have a custom exception filter that I\'m calling by virtue of adding a [CustomExceptionFilter] attribute to my class.It works as I\'d like it to, however if the action method is returning a partial[详细]
2022-12-20 12:59 分类:问答How should I handle this particular exception in C#?
I have a class called \"Websi开发者_如何学Gote\", and inside of that class I have the following property:[详细]
2022-12-19 20:08 分类:问答Why is it a "bad idea" to throw your own exceptions?
Why is it a \"b开发者_StackOverflowad idea\" to throw your own exceptions? found hereIn general, it is perfectly fine to throw your own exceptions.Perhaps what you meant to ask was \"When is it not[详细]
2022-12-19 04:23 分类:问答