473,804 Members | 3,932 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 18815
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
5827
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
2045
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
1425
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
7238
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
13832
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
3500
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
3290
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
12499
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
9579
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,...
0
10577
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10332
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10320
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
10077
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
9150
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...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4299
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2991
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.