[api-dev] How do I generate an Error?

2005-12-16 Thread Felix E. Klee
In the online documentation and in a book that I have at hand ("Open Office 
Programmierung" by Rene Martin) I find explanation for handling errors.  But, 
what I'd like to know is:

* How can I let my code *generate* errors?

* If generating errors manually is possible, how do I set the error number and
  the error message?

-- 
Dipl.-Phys. Felix E. Klee
Email: [EMAIL PROTECTED] (work), [EMAIL PROTECTED] (home)
Tel: +49 721 8307937, Fax: +49 721 8307936
Linuxburg, Goethestr. 15A, 76135 Karlsruhe, Germany

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [api-dev] How do I generate an Error?

2005-12-16 Thread Felix E. Klee
Am Freitag, 16. Dezember 2005 12:57 schrieb Felix E. Klee:
> * How can I let my code *generate* errors?

Anyone? 

I'd really love to have some kind of exception system at hand when programming 
in Basic.

-- 
Dipl.-Phys. Felix E. Klee
Email: [EMAIL PROTECTED] (work), [EMAIL PROTECTED] (home)
Tel: +49 721 8307937, Fax: +49 721 8307936
Linuxburg, Goethestr. 15A, 76135 Karlsruhe, Germany

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [api-dev] How do I generate an Error?

2005-12-17 Thread Andrew Douglas Pitonyak

Felix E. Klee wrote:

In the online documentation and in a book that I have at hand ("Open Office 
Programmierung" by Rene Martin) I find explanation for handling errors.  But, 
what I'd like to know is:


* How can I let my code *generate* errors?

* If generating errors manually is possible, how do I set the error number and
 the error message?
 

While writing my book, my intial reading of the specification was that 
you could CAUSE a specific error to be generated. I was never able to 
figure out how. It is my opinion that this is because I misunderstood 
the documentation. When I read it again, (as in now) I see why I thought 
that, but you can not cause the error unless you really do cause the error.


--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [api-dev] How do I generate an Error?

2005-12-19 Thread Dieter Krogh - Sun Germany

Hi Felix,

I'm afraid exception throwing is not available in OpenOffice Basic.

So you will have to define the error numbers and messages by yourself. 
In tiny programming projects it might be useful to hard code them, in 
larger projects I would suggest to have a file where numbers and 
messages are listed.


HTH

Dieter


Felix E. Klee wrote On 12/16/05 12:57,:
In the online documentation and in a book that I have at hand ("Open Office 
Programmierung" by Rene Martin) I find explanation for handling errors.  But, 
what I'd like to know is:


* How can I let my code *generate* errors?

* If generating errors manually is possible, how do I set the error number and
  the error message?



--

  Dieter Krogh

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]