使用flutter数据存储的sdk,我还没有注册,然后现在获取手机验证码,抛出异常
I/flutter ( 786): *** DioError ***:
I/flutter ( 786): uri: https://rnx2rmgg.lc-cn-n1-shared.com/1.1/requestLoginSmsCode
I/flutter ( 786): DioError [DioErrorType.RESPONSE]: Http status error [400]
I/flutter ( 786): uri: https://rnx2rmgg.lc-cn-n1-shared.com/1.1/requestLoginSmsCode
I/flutter ( 786): statusCode: 400
I/flutter ( 786): headers:
I/flutter ( 786): connection: keep-alive
I/flutter ( 786): cache-control: no-cache,no-store
I/flutter ( 786): date: Sun, 29 Mar 2020 08:17:18 GMT
I/flutter ( 786): transfer-encoding: chunked
I/flutter ( 786): content-type: application/json;charset=utf-8
I/flutter ( 786): pragma: no-cache
I/flutter ( 786): server: openresty
I/flutter ( 786): Response Text:
I/flutter ( 786): {"code":213,"error":"An user with the specified mobile phone number was not found."}
现在是通过抛出的异常来获知错误码213,手机没有注册。但是我需要在获取验证码的时候知道这个手机有咩有注册过,请问有没有方法,然后给与用户正确的提示,而不是抛出异常