The get_error() function is rapidly being deprecated in favour of simply doing direct $messageStack->addSession() calls from within the payment module instead.

There are presently no plans to retain it moving forward past the v1.5.x series.