[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Feb 21 18:18:30 1997 
Subject:Re: Any way to ignore pop11 errors ?? 
From:A . Sloman 
Volume-ID:970221.01 

> but I now want a standalone program - so is there any way I
> can ignore a message of the form :
>
>
> ;;; MISHAP - INVALID DATA TYPE FOR STRUCT ACCESS
> ;;; INVOLVING:  Type key - <key external_ptr> field name - width
> ;;; DOING    :  struct_field_access produce_error pop_setpop_compiler
>
> so that the program will continue to run ??

Try something like the following inside your top level procedure


	lvars oldprmishap = prmishap;

	define dlocal prmishap(string, list);

		dlocal prmishap = oldprmishap;	;;; reset old version inside here

		if issubstring('INVALID DATA TYPE', string) then
			exitfrom(produce_error)
		endif;

	enddefine;

There's new error handling stuff in Poplog V15.5, but I suspect the old
forms like this are still supported.

Aaron