Hi Tim,

I meant under -15000 not 15000. 4D or OS reserved error code above -15000 if my 
memory serve me right. I'm not talking real system crash and just 2 error codes 
collide and cause confusion. We trap and also generate various error codes 
returning from
triggers when it doesn't meet specific business rules. The error codes would be 
converted to verbose form to users. We use error code from -15001 to -20000.

Alan Chan

4D iNug Technical <4d_tech@lists.4d.com> writes:
>Alan,
>
>Are you thinking about plugin id numbers?
>ftp://ftp.4d.com/ACI_TECHNICAL_NOTES/2009/MacOS/TN_2009_01-04_(JAN)/09-02_4D_Plug-in_Dev_Guide_-_Part_1.pdf
>{" You should pick a number between 15000 and 32767."}
>
>How would retuning a similar error code cause a crash?
>How are you returning the error code?
>
>-Tim
>
>
>-----Original Message-----
>From: 4D_Tech [mailto:4d_tech-boun...@lists.4d.com] On Behalf Of Alan Chan via 
>4D_Tech
>Sent: Friday, February 02, 2018 1:36 AM
>To: 4d_tech@lists.4d.com
>Cc: Alan Chan <a...@belhk.com>
>Subject: Error Code reserved by 4D
>
>I thought error codes under -15000 were not reserved by 4D. Now it produces 
>error -20002 that might crash with user generated error for business rules 
>control.
>
>Could anyone tell if 4D changes error code range reserved by 4D?
>
>TIA.
>
>Alan Chan
>
>4D iNug Technical <4d_tech@lists.4d.com> writes:
>>I just today got the -20002 error in a compiled database.
>>The issue is/was pointers.
>
>
>>I still have to use a different method to handle the error because I
>>get a -20002 (accessing a parameter that does not exist) error in compiled 
>>mode. I think this -20002 error is related to my usage of $0 in the normal 
>>context of this method ($0 is not used in the error handler context).  It 
>>looks like you also
>return a Boolean in $0 but you do not mention seeing the -20002 error; weird. 
>Have you have provoked your error handler in compiled mode?
>

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to