You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@christiancozzolino The runtime exception is a general exception, so it could also be thrown when other errors occur. But depending on the use case this might help you out.
Activity
christiancozzolino commentedon Apr 16, 2019
I solved this:
try
{
$user = $client->api('user')->show('usernameToSearch');
}
catch (\RuntimeException $e)
{
print 'User does not exist';
}
is it right for you?
acrobat commentedon Apr 17, 2019
@christiancozzolino The runtime exception is a general exception, so it could also be thrown when other errors occur. But depending on the use case this might help you out.