PowerBuilder · Exception

DWRuntimeError System Exception

What does DWRuntimeError System Exception mean in PowerBuilder?

Fires when a DataWindow control or DataStore encounters an internal error that is not intercepted by a scripted Error event, converting what used to be a silent Error-event-only failure into a catchable RuntimeError descendant. It exposes the same detail (object name, line, error number) that the DataWindow's Error event arguments would otherwise carry.

DWRuntimeError System ExceptionPowerBuilder Classic · Appeon PowerBuilder

Condition

Fires when a DataWindow control or DataStore encounters an internal error that is not intercepted by a scripted Error event, converting what used to be a silent Error-event-only failure into a catchable RuntimeError descendant. It exposes the same detail (object name, line, error number) that the DataWindow's Error event arguments would otherwise carry.

Fix

Add a TRY/CATCH around DataWindow operations (Retrieve, Update, expression evaluation) that catches DWRuntimeError so failures can be logged with full context even when no Error event script exists on that DataWindow. Compare its Number and Text properties against the DataWindow error reference to identify the exact failing operation.

Related exception