exception-handling
Database Exceptions -> Throw exceptions in Database class or in Controller class
I\'m writing a j2me(mobile) which uses a db a lot. But now I don\'t know how to do the following. Should I throw Exceptions in the database class itself, and use a try Catch in the controller class.[详细]
2023-02-11 00:08 分类:问答What is the advantage of chained exceptions
I do not und开发者_运维知识库erstand the advantages of having a chained exception in the code.[详细]
2023-02-10 17:51 分类:问答Send uncaught exceptions to a particular method
I have a custom exception class with a show() method that shows exceptions in a pretty way. In some fatal errors I left the exceptions uncaught so the programs exists intermediately, but I would like[详细]
2023-02-10 08:47 分类:问答Handling Unique Record Exceptions in a Controller
I have a model called Subscription th开发者_高级运维at has a unique index on the fields [:email, :location]. This means one email address can subscribe per location.[详细]
2023-02-10 08:27 分类:问答Creating a Project Without Using a Single TRY-CATCH exception handling
I want to centralize error handling by avoiding the messy t开发者_JS百科ry-catch blocks, I explored the global.asax and I notice[详细]
2023-02-10 07:23 分类:问答Rethrowing an exception from an exception catch
Is it a good idea to catch an exception and then throw another exception? Like so: Try \' Do operation xxx[详细]
2023-02-10 05:43 分类:问答Zero cost exception handling vs setjmp/longjmp
Assuming that there is a cost associated with setting recovery point, one could optimize a loop like this:[详细]
2023-02-10 05:36 分类:问答SocketException : No such host is known
I want to connect to mysql database from my asp page.So for that as per what my hosting providers told i used the connection string where server is given as \"localhost:3309\"[详细]
2023-02-10 03:44 分类:问答In ASP.NET how to identify/process 404 exceptions?
I need to handle 404 exceptions differently than all other types of them. What is the best way to identify those 404 exceptions (dis开发者_运维技巧tinguish them from other exceptions)?[详细]
2023-02-10 01:45 分类:问答Ignore user input outside of what's to be chosen from
I have a program in which the user must make a selection by entering a number 1-5. How would I handle any errors that might arise from them entering in a digit outside of those bounds or even a charac[详细]
2023-02-09 21:26 分类:问答