473,394 Members | 1,697 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Exception.getMessage() returns null.

dmjpro
2,476 2GB
Please make me understand ... why Exception.getMessage() returns null.
In which situation it happens, please explain me.

Debasis Jana
Oct 24 '07 #1
3 18743
JosAH
11,448 Expert 8TB
Please make me understand ... why Exception.getMessage() returns null.
In which situation it happens, please explain me.

Debasis Jana
Expand|Select|Wrap|Line Numbers
  1. new Exception();
  2.  
kind regards,

Jos
Oct 24 '07 #2
dmjpro
2,476 2GB
Expand|Select|Wrap|Line Numbers
  1. new Exception();
  2.  
kind regards,

Jos
Actually my code is something like this ...

Expand|Select|Wrap|Line Numbers
  1. try
  2. {
  3. //some code
  4. }catch(Exception e){
  5. //here e.getMessage() returns null
  6. }
  7.  
What should be the possibility?

Debasis Jana
Oct 24 '07 #3
JosAH
11,448 Expert 8TB
What should be the possibility?
Did you read my previous reply? If an Exception is created without passing it
a String message the Exception will return null as its message.

kind regards,

Jos
Oct 24 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Toon Huysmans | last post by:
Hi, I have a mind boggling error in VC++ .NET. An exception THException is being thrown, but it seems to cause an accessviolation, but the code is so simple that I cant figure out where the...
2
by: dinks | last post by:
Hi, I'm new to C++ and have been assigned a task which i dont completely understand. Any help would be greately appreciated. Here is the problem: The class "linkedListType" use the "assert"...
0
by: Mike Grishaber | last post by:
I am using .NET Remoting to connect my incoming HTTP Requests to my business logic. I am using a custom IHttpAsyncHandler to receive the incoming HTTPRequests and then I forward the...
4
by: Terry | last post by:
Hello, I am trying to get a response for an .aspx page in my current project (same virtual directory) by using WebRequest.GetResponse but I keep getting a exception with "500 Internal server...
6
by: asenthil | last post by:
Hai to all, Now i'm trying to export Mysql table to a file By using the following program... itz sucessfully compiled... but it throws the above Exception.. import java.io.*; import...
1
by: MRamaLakshmi | last post by:
hi, I am developing an application using Java Applet which will be uploading files. Its throwing Null Pointer exception while detecting the proxy when we are trying to load the applet using Java6....
3
by: kalvarahul | last post by:
I have implemented a code for one form its name is hardware form and first i will enter data it will take it and after enetering the second time it is gving me an null pointer exception it is not...
2
by: ouzsharp | last post by:
The follwing class works well when used in a C# console application: namespace ScreenShotDemo { /// <summary> /// Provides functions to capture the entire screen, or a particular...
3
code green
by: code green | last post by:
My code for formatting a caught Ecxeption into a string is $this->message .= '<br>Exception thrown in '. '<br>File: '.basename($msg->getFile(),'.php'). '<br>Line: '.$msg->getLine()....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.