throwOnError method
Throws an AskarErrorCodeException if the error code is not successful.
Implementation
void throwOnError() {
if (!isSuccess()) {
throw AskarErrorCodeException(ErrorCode.fromInt(code));
}
}
Throws an AskarErrorCodeException if the error code is not successful.
void throwOnError() {
if (!isSuccess()) {
throw AskarErrorCodeException(ErrorCode.fromInt(code));
}
}