Hi All,
Is there any way to extend the Error class?
Usually, I create error objects using the ErrorNew() function. Now I
need some more exported variables, including :modulename, :procname
and :procline. I'm converting code written in xHarbour to Harbour.
I've tried the following:
---
#include "hbclass.ch"
CREATE CLASS MyOwnError INHERIT Error
EXPORT:
VAR modulename TYPE CHARACTER
VAR procname TYPE CHARACTER
VAR procline TYPE CHARACTER
METHOD init CONSTRUCTOR
END CLASS
METHOD init()
::Error:init()
::modulename := ""
::procname := ""
::procline := ""
RETURN ( self )
---
This doesn't work! I've got a link error "undefined reference to
'HB_FUN_ERROR'".
How to extend the Error class?
--
Daniel Gonçalves
Base4 Sistemas Ltda.
[www.base4.com.br]
[twitter.com/spanazzi]
_______________________________________________
Harbour-users mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour-users