Programmer Guide > Creating an OPI Option > wave_onerror
  

wave_onerror
Sets the value of the PV‑WAVE error action.
C Usage
void wave_onerror(action)
long action;
FORTRAN Usage
Not available.
Input Parameters
action—A value of the PV‑WAVE error action:
0—Stop at the statement in the procedure that caused the error. (This is the default action.)
1—Return all the way back to the main program level.
2—Return to the caller of the program unit which established the ON_ERROR condition.
3—Return to the program unit which established the ON_ERROR condition.
Discussion
The wave_onerror function sets the value of the action to take in the same way PV‑WAVE command ON_ERROR does.

Version 2017.1
Copyright © 2019, Rogue Wave Software, Inc. All Rights Reserved.