throw
Throwing Java exception in JRuby and catching it in Java
I have created my own UI component in Java. It has model and a few of model\'s methods can throw my exception called ModelException. I want to use this component in JRuby but I can\'t raise my ModelEx[详细]
2023-04-12 22:01 分类:问答How throw, try {} catch {} should be used in the real world?
I mean, I knew all the language rules about throw, try {} catch {}, but I am not sure if I am using them correctly in the real world. Please see the following example:[详细]
2023-04-09 15:38 分类:问答Java: Should I / What to throw when authentication is excepted?
I am writing a small library, and in which I need to access several different type of files. While the access method itself is different for each kind of file format, they seem to have a lot in common[详细]
2023-04-09 15:27 分类:问答Error in Javascript causes page in IE to stop running javascript
On my website, I have a reference to a javascript file, and on IE, this error is thrown: send: function (data) {[详细]
2023-04-06 10:28 分类:问答Better to return None or throw an exception when fetching URL?
I have a Scala helper method that currently tries to fetch a URL and return an Option[String] with the HTML of that webpage.[详细]
2023-03-23 22:48 分类:问答Rotating and throwing objects using flash and Box2D 2.1a
i\'m using flash with box2D 2.1a. i\'m rotating ball hanging on the string. The path which the rotating ball trace is ellipse. When releasing the rotating ball 开发者_开发百科from the string i want th[详细]
2023-03-22 22:14 分类:问答C++: Throwing exceptions, use 'new' or not?
Is it proper to use throw new FoobarException(Baz argument); or throw FoobarException(Baz argument);?[详细]
2023-03-22 05:55 分类:问答Java catching exceptions and subclases
Hello, In Java if a method like BufferedReader.read() says it can throw an IOException and I try to catch a FileNotFoundException and a开发者_JAVA百科n IOException in two catch blocks, what catch blo[详细]
2023-03-20 08:36 分类:问答Manage Exceptions in Java
I\'m doing a small database program. Connection connection = DriverManager.getConnection(..., ..., ...);[详细]
2023-03-16 13:01 分类:问答Throw in C++ triggers program message then crash
I debugged my application and the code crashes instantly upon the throw statement inside of this code:[详细]
2023-03-14 10:58 分类:问答