473,386 Members | 1,943 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,386 software developers and data experts.

User Define Error - Passible in VB.NET

Hi All !

How to create the User Define Error Object and how to Genrate the Error (How
to through the Error?) in VB.NET ?

Please Reply ASAP.

Thanks & Regards,
ElanKathir.S.N,
ASM Technologies,
B'lore.
Nov 20 '05 #1
3 1011
"ElanKathir" <sn**********@hotmail.com> schrieb

How to create the User Define Error Object and how to Genrate the
Error (How to through the Error?) in VB.NET ?


http://msdn.microsoft.com/library/en...Exceptions.asp
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
Hi,

You have to throw an exception.

Throw New Exception("My Error!")

Ken
---------------------
"ElanKathir" <sn**********@hotmail.com> wrote in message
news:eP****************@TK2MSFTNGP12.phx.gbl...
Hi All !

How to create the User Define Error Object and how to Genrate the Error
(How
to through the Error?) in VB.NET ?

Please Reply ASAP.

Thanks & Regards,
ElanKathir.S.N,
ASM Technologies,
B'lore.

Nov 20 '05 #3
* "ElanKathir" <sn**********@hotmail.com> scripsit:
How to create the User Define Error Object and how to Genrate the Error (How
to through the Error?) in VB.NET ?


\\\
Public Class StupidnessException
Inherits Exception

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: truckmen | last post by:
Hello All, I still can't figure it all out. I am trying to create a web page (using php) where: 1) A visitor add his or her name to an address book that can also be viewed online by other...
2
by: Marek Szarafiński junior | last post by:
Please help... My problem is I need to write simple function which checks if user (system user - Windows 2000 Professional), and password matches. Someone told me I should use function...
9
by: Therese A. Sorna | last post by:
Hello all... I am using Access 2002. I have database set to add users names to the user level security when they are added to a particular table in a database, using the Catalog and...
10
by: jeff regoord | last post by:
A user inputs a float value. The scanf() function gets the value. However, I need to create an error handler with an if else statement saying invalid input if the input is not a number. Does...
1
by: Liz | last post by:
As a newbie I have been trying to set up an event handler in my user-defined control to trigger an event in my form when lblSelectedClient.Text changes. I get an error on my event definition...
0
by: Verane | last post by:
Hi all, I want to define a user control (called BaseUserControl) in one assembly, and define another user control (called derivedUserControl) in another assembly which derived from...
6
by: mg | last post by:
The following .exe and its parameters work correctly from the command prompt (it prints x.pdf without prompting the user. acrord32.exe /t "c:\exportfiles\x.pdf" "HP LaserJet 3300 Series PCL 6"...
14
by: n3o | last post by:
Hello Comp.Lang.C Members, I have an issue with user input that I have been trying to figure out for the longest. For instance, let's say you have something like this: void foo() { int num;...
12
by: Tarique | last post by:
I have tried to restrict the no. of columns in a line oriented user input.Can anyone please point out potential flaws in this method? btw.. 1.I have not used dynamic memory allocation because...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...
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...

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.