473,699 Members | 3,360 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

throwing a warning

-
i have a stored procedure that accepts parameters. is it possible to
'throw' a warning if the parameters are invalid?
e.g the parameter must be more than 0.

the client will then see "..... 0 rows affected, 1 warning .."
Jul 23 '05 #1
0 933

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

Similar topics

21
4430
by: mihai | last post by:
People say that is a bad technique to throw exception from constructors; and that the solution would be to create a function _create_ to initialize an object. What about copy constructors? How can we avoid throwing exceptions? If we already have an abject witch was initialized wit _create_ we will be forced to call create in copy constructor and to throw exceptions from it. Have a nice day,
2
1695
by: isaphrael | last post by:
I have an unbound form with a textbox with an input mask 00\-00000;;_ Putting some data into the text box and then trying to close it throws the 'didnt match input mask' warning, and if I click ok on that it brings up an error: "You can't save this record at this time." ..."data changes will be lost...want to close...anyway?" It doesn't give me an error number, and I don't have any records to save. What can I do to capture this error?
5
6753
by: n_o_s_p_a__m | last post by:
Can't compile. Does this mean that all functions that throw exceptions must be of return type void? examples: // won't compile: "not all code paths return a value" public override int Run() { throw new Exception("exception thrown"); }
40
13517
by: Kevin Yu | last post by:
is it a bad programming design to throw exception in the try block then catch it??
9
1508
by: Mark Rae | last post by:
Hi, Can anyone please tell me if there is any difference in throwing an exception with or without parentheses, e.g. try { /* code */
1
1137
by: cvman16 | last post by:
I've been banging my head on my keyboard over this for a few days now, and hoping someone out there can help me out. I'm not very expirienced in Javascript, but undestand the basics. What I have is a textarea in a form, that I want to test and give a warning if more than a set number of characters. 1. <script language="JavaScript" type="text/javascript"> 2. <!-- 3. function Test_Too_Long(element, maxChar) 4. if...
2
2314
by: psbasha | last post by:
Hi , I would like to throw a error/warning message to the user based on the Inputs given. Case 1) If the inputs are not given correctly.I have to diplaythe message,saying "Enter the correct inputs" Case 2) In between the functions,if I am getting a wrong input data ,I have to stop further execution of the application and display the error message " Calculated xyz values are wrong ..." I hope we have to use "try " and "catch' blocks.
1
1130
by: empiresolutions | last post by:
Why is this code throwing the following errors? Thanks. <? class DirTree { /** * Get a tree of folders and files from a spec dir * @returns An ArrayCollection of Tree */
21
1708
by: Chris M. Thomasson | last post by:
Is it every appropriate to throw in a dtor? I am thinking about a simple example of a wrapper around a POSIX file... ________________________________________________________________________ class file { FILE* m_handle; public: // ; ~file() /* throw() */ {
0
8623
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
9053
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
8936
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
8894
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
7776
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
5879
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3071
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
2
2360
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.