Re: [GENERAL] Throwing exceptions

2007-06-26 Thread Michael Glaesemann
On Jun 25, 2007, at 19:01 , Michael Glaesemann wrote: The message is just a string. Assign the message to a variable and use the variable in place of the message. For example, in PL/pgSQL: k_error_message := 'Boom! %'; RAISE EXCEPTION k_error_message, v_foo.id; I was wrong. The message is

Re: [GENERAL] Throwing exceptions

2007-06-25 Thread Michael Glaesemann
On Jun 21, 2007, at 10:30 , Germán Hüttemann Arza wrote: I need a way to throw a message in a function, when an exception occurs, but I don't want to write again and again the same message in every place I need to throw it. So, is there a way to handle this situation in a more general man

[GENERAL] Throwing exceptions

2007-06-25 Thread Germán Hüttemann Arza
Hi, I need a way to throw a message in a function, when an exception occurs, but I don't want to write again and again the same message in every place I need to throw it. So, is there a way to handle this situation in a more general manner? Thanks in advance, -- Germán Hüttemann Arza CNC - C

Re: [GENERAL] Throwing exceptions

2007-06-21 Thread Scott Marlowe
Germán Hüttemann Arza wrote: Hi, I need a way to throw a message in a function, when an exception occurs, but I don't want to write again and again the same message in every place I need to throw it. So, is there a way to handle this situation in a more general manner? Why not create a tabl

[GENERAL] Throwing exceptions

2007-06-21 Thread Germán Hüttemann Arza
Hi, I need a way to throw a message in a function, when an exception occurs, but I don't want to write again and again the same message in every place I need to throw it. So, is there a way to handle this situation in a more general manner? Thanks in advance, -- Germán Hüttemann Arza CNC - C