Hi
I was waching the PLINQ PCD09 presentation by Igor Ostrovsky, and wanted to try to see what I could get out of my CULV laptop.
At a point I got a strange exception and I'm not sure what it means. I've condensed the code for better overview. It is the last primes.Sum() that causes the exception and if I make the range small - 8000 - ...
I want to make the debugger in Visual Studio 2010 stop at the exception System.Data.Services.Client.DataServiceClientException.
I use Debugging -> Exceptions -> Common Language Runtime Exceptions.
When I drill down I would expect to see System.Data.Services entry, but that's not the case.
How should I mark the exception for stopping,...
Hopefully a nice n simple one for you
Running some tests in VS2010's testing framework.
When an exception is thrown somewhere inside it, the results screen shows nothing of the details.
Simplest example:
[TestMethod]
public void DoTest()
{
int y = 10 - 10;
int x = 10 / y;
}
Test method MyProj.DoTest threw exception:
...
Y...
Hi,
This is a very general question, I hope you won't laugh or scold me.Anyway here it comes:
I am using struts2, hibernate, jpa and spring.I have four layers in my application:
1.Struts Action Layer,
2.Business Layer,
3.Service Layer,
4.Common Utility Layer
So I need to define a Custom Exceptions so that if exception happens at server...
What could be the possible causes of exception in calling CoUninitialize().
Our product is using COM and some of WER crash reports are pointing to CoUnInitialize().
WER systems name it as Special Exception.
Any pointers?
...
So I've got this exception defined, protected constructors, static constructor methods (so all the exceptions are generated with the same formatting and I don't have to fight in the constructors. Anyway, this is besides the point... (not my issue? let's leave that alone k?)
public class ValidationException : Exception
{
// Constructo...
Can some one provide a very specific and to the point answer for this question ?
...
The exception is thrown in line 24 the second time I type something (after I have typed the host name) - server works right. Code
import java.io.*;
import java.net.*;
class TCPclient {
public static void main(String[] args) throws Exception {
String hostname, msg;
InetAddress hostaddress;
BufferedReader inFr...
Question: I catch generally unhandled exceptions with
AddHandler System.AppDomain.CurrentDomain.UnhandledException, AddressOf OnUnhandledException
The problem now is, with this exception handler
Public Sub OnUnhandledException(ByVal sender As Object, ByVal e As UnhandledExceptionEventArgs)
Console.WriteLine(e.ExceptionObject.ToStri...
Hi, I'm starting with VB.NET and NHibernate but i'm getting this exception:
NHibernateConfigException was unhandled
An exception occurred during configuration of persistence layer.
This is the code
Dim configuration As New Cfg.Configuration()
configuration.Configure()
configuration.AddFile("person.hbm.xml")
Dim f...
I am getting this exception in a controller of a web application based on spring framework using hibernate. I have tried many ways to counter this but could not resolve it.
In the controller's method, handleRequestInternal, there are calls made to the database mainly for 'read', unless its a submit action.
I have been using, Spring's S...
If you are rethrowing an exception to the UI layer (so the user will see it) is it always wise to rethrow a specific exception (Eg argumentnullexception)?
The problem I've seen with this is that it is too much technical information to he user. All I need to know is the problem and the cause, hiding any details and not even mention the w...
Hi,
What are the Runtime exceptions and what are Checked/Unchecked Exceptions and difference between Error/Exception.Why these many types? Instead Java may simply follow a simple design(just try/catch all types) to handle an abnormal condition in a program?
...
Hi,
I have a userControl like this:
<UserControl x:Class="LoginModule.LoginView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:controls="clr-namespace:UserControls;assembly=UserControls"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
<UserControl.Resources>
<ResourceDiction...
I want to know particular exception like NullPointerException ex is faster than Exception ex.
For example my code throws NullPointerException
try {
...
} catch (NullPointerException e) {
...
}
or
try {
...
} catch (Exception e) {
...
}
Which one is faster? I think exception system depends on flags so particular type i...
jp.ne.so_net.ga2.no_ji.jcom.JComException: IDispatch::Invoke(0x52,1) failed HRESULT=0x80020009L.
I am getting the above exception while connecting to an URL.
I have no idea why my code is throwing such exception.
Need help.
Thanks in advance!
...
This is a test I am currently working on:
(Edited according to Lees answer)
[Test]
public void AddLockClassWithNullNameShouldCallInsertOnSessionWithEmptyString()
{
LockClass lockClass = new LockClass { Id = ValidId, Name = null };
using ( mockRepository.Record() ) {
sessionFactory.CreateSession();
LastCall.Retur...
I'm converting some C# code to Java and I need to include an exception that is similar to C#'s InvalidOperationException. Does such a thing exist? Also is there a list of equivalent exception types in the two languages? Thanks.
I think in my particular case IllegalStateException is most appropriate. Thanks for all the responses.
...
Hi,
I have a class Param.cpp which is a set of parameters for the main class Model.cpp. I create an instance of Param.cpp in a C# file using a graphic interface. It works great, I can see in debug that the param has a PropList containing one element - in my example.
My Model class has a function BuildModel(Param param) which set the m...
I have two web applications both on the same IIS 7 box. One application is running in an app pool with .NET 2.0. The other is running in a different app pool with .NET 4. Both are running as the app pool identity and have identical settings. Each contains a virtual directory of a network share. To access the share, a username and passwor...