LPS-51154 fix compilation error

Version in core doesn't throw Exception.