Hi Zhang,
Ideally the backend error will be thrown either with the exceptions or BAPI return parameter. In this case from UI, you need to bind the exceptions and handle it, in order to show as error message.
Also check this thread : Exception message handling in sapui5 ?
Regards,
Tejas