Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Throw DB error

by Bheema_Tyco (Novice)
on Mar 03, 2010 at 12:01 UTC ( [id://826393]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Throw DB error
in thread Throw DB error

I am sorry again i am disturbing YOU. i don't want to change either in sql query or deleting rows. I am asking that, is there any mechanism in perl that a person can throw error intentionally. Because i am using

$SIG{__WARN__} = \&WARN_Handler; $SIG{__DIE__} = \&DIE_Handler;

And i also written code for handle error using WARN_HANDLER AND DIE_HANDLER

Replies are listed 'Best First'.
Re^5: Throw DB error
by Anonymous Monk on Mar 03, 2010 at 12:41 UTC

      WARN_Handler and DIE_Handler are the two sub routines i have defined. Whenever db throw errors these routine will get activated. i am calling these methods using SIG { } command See bellow code

      $SIG{__WARN__} = \&WARN_Handler; $SIG{__DIE__} = \&DIE_Handler;

      here &WARN_Handler and &DIE_Handler are the two sub routines OK. So now tell me how to throw db error as we in JAVA or some languages.

        warn and die are perl sub routines OK, understand?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://826393]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found