473,795 Members | 3,331 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Exception.getMe ssage() returns null.

dmjpro
2,476 Top Contributor
Please make me understand ... why Exception.getMe ssage() returns null.
In which situation it happens, please explain me.

Debasis Jana
Oct 24 '07 #1
3 18811
JosAH
11,448 Recognized Expert MVP
Please make me understand ... why Exception.getMe ssage() 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 Top Contributor
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 Recognized Expert MVP
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
5825
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 av comes from. MyMesh::Point cog()
2
2044
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" facility. I am to get rid of them and replace them with exceptions. I need to create a "linkedListException" class that's declared and implemented in my "linkedListType" class. This class needs to inherit from the base "exception" class and return...
0
1424
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 IHTTPAsyncHandler to my application which runs a .NET Remoting server. The application stores a reference to the IHTTPAsyncHandler proxy until the request has been processed. When it is done, it retrieves the IHTTPAsyncHandler proxy and returns the results back...
4
7236
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 error" in the exception message. I am able to do this fine with another .aspx page that has no code-behind. The page that has code-behind throws the exception. What I am doing is getting the .aspx response, reading the stream, replacing
6
13830
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 java.sql.*;
1
3499
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. It is working fine for Java5. Here i am giving the piece of code where it is throwing me exception protected void autoDetectProxy(URL url) { // Trying Java system variables.
3
2304
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 allowing me to update this form please can any one help me out. Regards, rahul. Code where it is giving error is (in editing): public String add_action() { RequestBean1 bean = getRequestBean1();
2
3288
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 window, and save it to a file. /// </summary> public class ScreenCapture {
3
12492
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(). '<br>Msge: '.$msg->getMessage(). '<br>Code: '.$msg->getCode(). '<br>------------------------------'; Which is fine, but the stack trace appears in the getMessage() return. Good for debugging. But I have remote servers sending emails with...
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10163
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10000
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9037
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5436
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.