Omgili - forum search, search forums  
  

Discussions about exceptions

Displaying 1 - 10 out of 1,171,788 discussions.  
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
I've been updating an existing library to throw exceptions to help improve debugging by people using the library. At first, I thought I'd define exceptions specific to each class, however it turns out most of those exceptions are simply extensions of ...
Started by on , 7 posts by 7 people.  
This is not to say that you should never use custom exceptions....
Use the standard exceptions.
Extending the Exceptions without adding any value like this is a complete waste of time and incurs an ongoing maintenance cost that is best avoided.
I am wondering how in practice other SOers tend to deal with and/or prevent exceptions. In what situations do you prevent exceptions, and how? In what situations do you catch exceptions? I usually prevent 'NullPointerExceptions' (and other similar ones...
Started by on , 13 posts by 13 people.  
For example, any it's a RuntimeException.) Exceptions are more useful when you expect to be able to detect a failure condition in one -- or all of the way up ....
If you can prevent exceptions, then it's better programming practice to do so.
Is it possible to convert floating point exceptions (signals) into C++ exceptions on x86 Linux? This is for debugging purposes, so nonportability and imperfection is okay (e.g., if it isn't 100% guaranteed that all destructors are called).
Started by on , 6 posts by 6 people.  
Due to the way signals and exceptions work, you can't do it immediately when the signal is thrown - exceptions rely on certain aspects of the stack that aren't true when a signal handler gets called (not sure whether you can safely throw....
Ask your Facebook Friends
Is there a way to annotate a method so all exceptions thrown are converted to runtime exception automagically? @MagicAnnotation // no throws clause! void foo() { throw new Exception("bar")' }
Started by on , 5 posts by 5 people.  
-- Edit: Personally I believe....
May I ask why you want to suppress the checked exceptions? 1 according a method wrapper which calls the desired method with exceptions and all inside a try" in an annotation .
Only unchecked exceptions 2 .
I have read that there is some overhead to using C++ exceptions for exception handling as opposed to, say, checking return values. I'm only talking about overhead that is incurred when no exception is thrown. I'm also assuming that you would need to implement...
Started by on , 8 posts by 8 people.  
The overhead should generally be negligible in every....
Only try/catch and try/except block take a few instructions to set up.
The overhead mainly comes from using exceptions as control logic, when an exception with.
It's the same.
I have some code that gives a user id to a utility that then send email to that user. emailUtil.sendEmail(userId, "foo"); public void sendEmail(String userId, String message) throws MailException { /* ... logic that could throw a MailException */ } MailException...
Started by on , 12 posts by 12 people.  
You might want to throw individual exceptions of the exceptions encapsulated in the mailException but not others In most cases I would say just log the text of the exception and don't ....
It depends on what your application is doing.
I want the api of my module to only throw MyPackageSpecificException whenever anything goes wrong and the module unable to perform its task. (The original exception will be given as the cause of the MyPackageSpecificException). Now, for one constructor...
Started by on , 4 posts by 4 people.  
} public static MyClass createMyClass(String urlString) throws MyPackageSpecificException { try { new MyClass(urlString); catch (Exception....
If it fits your code, you can use a static creator method instead: private MyClass(String urlString) { .. .
I am creating some custom exceptions in my application. If I have an exception that gets thrown after testing the state of an argument, Or I have an Exception that gets thrown after testing that an int is within the proper range, should my exceptions ...
Started by on , 11 posts by 11 people.  
I'm just curious, why wouldn't you actually use the Exceptions that are already there? It sounds like these exceptions are exactly what you need, why are you against using those? Personally similar but not exactly the same exceptions....
Where are exceptions stored ? Stack, Heap. How is memory allocated and deallocated for Exceptions? Now if you have more than one exception which needs to be handled are there objects of all these exceptions created?
Started by on , 8 posts by 8 people.  
They can be nested garbage-collected like everything else.
There cannot be two exceptions being thrown at the same time (on the same thread).
I would assume that memory for exceptions is allocated the same way as for all other objects).
I'm building the standard 3-tier ASP.NET web application but I'm struggling as to where to do certain things - specifically handling exceptions. I've tried to have a look around on the web for some examples but can't find any which go as far as a whole...
Started by on , 5 posts by 5 people.  
Handling exceptions lower down in the call such as the SqlConnection), document ....
-Krip I believe its best practice to handle exceptions at the last responsible, and what needs to be done if something doesn't work.
Or business tiers.
Page: 1   2   3   4   5   6   7   8   9   10  
Related Searches
exceptions    Exception commercialapps2    w3wp exception    Exception EOleSysError    exception 0xc000007b    cannot connect to internet except firefox    php i mysqli exception    agent exe exception error    exception aviWUSB54Gv4 dll    lost planet exception 0x   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost