Re: error codes in returns

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu