Re: error codes in returns
- Posted by jacques_desch Sep 11, 2009
- 1233 views
my prefered way to this is like windows win32 api does in most cases. Return a boolean and call GetLastError() to get the error number and there is another function to get text for that error.
I think libraries should word that way.
public function GetLastError() return last library error code
public function ErrorText(integer error_code) return text for that error.
Jacques