🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #28

Re: passing information to be displayed in exception ??

#28
From: Martijn Tonies
Date: Thu, 22 May 2008 13:28
27 lines
1937 bytes
> > but I need the displayed message to be more informative for example
> > to pass the current balance amount in the exception message , how I
> > can do that ?
>
> You cannot. Exceptions do not support variable data in the message. The
> only workaround I know of is to insert the variable information into a
> temporary table and let the client application read it from there.

Bill, when it comes to exception handling from inside the database and
a client-side transaction commit/rollback, these things become rather
tricky :-)

If the exception (in the database) causes the client app to rollback it's
changes, the data won't be in the table either.


-- 
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
Technical Details
Message-ID: <483573ff@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <4831a020@newsgroups.borland.com> <4831c7a5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,4bd5c26775487a13
X-Google-Attributes: gid114a0e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Martijn Tonies" <m.tonies@upscene.removethis.com>
Newsgroups: borland.public.interbase.sql
References: <4831a020@newsgroups.borland.com> <4831c7a5$1@newsgroups.borland.com>
Subject: Re: passing information to be displayed in exception ??
Date: Thu, 22 May 2008 15:28:25 +0200
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1914
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1914
NNTP-Posting-Host: 212.238.159.172
Message-ID: <483573ff@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1211462655 212.238.159.172 (22 May 2008 06:24:15 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.albasani.net!news.isoc.lu!newsgroups.borland.com!not-for-mail