Currently got invalid json response then throw Exception.
But I don't want type try{}catch... each method when using Mastodon APIs.
So should change that make user check valid instance or null?
var status = await client.PostNewStatus(null);
if (status == null)
{
// do error handling
}
else
{
// do something with status
}
Currently got invalid json response then throw Exception. But I don't want type try{}catch... each method when using Mastodon APIs. So should change that make user check valid instance or null?