Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
中继存储更新的 onFailure 回调无法访问有关错误的良好信息。它只能访问一个通用Error实例,其中来自服务器的错误消息隐藏在由调试信息包围的消息中。
Error
我想在 UI 中显示从服务器获得的错误消息。
我如何访问它?
Found out that you can get to the error from inside the onFailure callback like this: transaction.getError().source.errors
onFailure
transaction.getError().source.errors