You searched for exceptions
. We found 168
results in 0.041 seconds.
Task.WhenAll doesn't block anyway, unlike Task.WaitAll. It just return a task that completes when all of the original tasks have completed. It's important to understand that you don't await a method - you await a value (or some type that... more
Now even though I have initialized the variables You haven't though - not necessarily. Suppose the new SimpleSpkDetSystem(...) call throws an AlizeException. You're catching that exception and continuing - but you won't have assigned... more
You can use the overload of parse which takes a ParsePosition: public static Date parseDate(final String dateString, final String[] acceptedFormats) { ParsePosition position = new ParsePosition(0); for (String format :... more
Or does the compiler knows only the type of the reference, not of the object (in the memory) itselfs? It only knows the type of the expression that you're trying to cast. That expression is of type Object, so it's fine to cast it to C... more
Not reliably - there's nothing in the FormatException that does this for you. Parsing the message is very fragile - it can change in different versions of .NET, and it'll be localized. One option would be to write your own Parse method... more
Yes, it will happen due to this: Response.End(); As documented: To mimic the behavior of the End method in ASP, this method tries to raise a [ThreadAbortException] exception. If this attempt is successful, the calling thread will be... more
You're creating a Timer instance, but not making sure that it doesn't get garbage collected. From the documentation: After the last live reference to a Timer object goes away and all outstanding tasks have completed execution, the... more
This is quite possibly the issue: oStream.write(" Customer : Γειά σου\r\n".getBytes()); oStream.write(" ΚΩΔΙΚΟΣ : 00000234242\r\n".getBytes()); You're calling String.getBytes() with no encoding, to get a byte array using the... more
Is it possible to get Eclipse to ignore the error "Unhandled exception type FileNotFoundException". No. That would be invalid Java, and Eclipse doesn't let you change the rules of the language. (You can sometimes try to run code which... more
It sounds like you should pass "method body" in as a delegate: public void GiveMeAProperName(Action<DBContext> databaseAction) { try { using(var trans = new TransactionScope()) { using(var context =... more