mirror of
https://github.com/oliverbooth/VpSharp
synced 2024-11-23 00:48:47 +00:00
catch (VirtualParadiseException)
This commit is contained in:
parent
a90d2ccc7f
commit
eef5dcf1c2
@ -5,6 +5,7 @@ using System.Threading.Channels;
|
|||||||
using VpSharp.ClientExtensions;
|
using VpSharp.ClientExtensions;
|
||||||
using VpSharp.Entities;
|
using VpSharp.Entities;
|
||||||
using VpSharp.EventData;
|
using VpSharp.EventData;
|
||||||
|
using VpSharp.Exceptions;
|
||||||
using VpSharp.Internal;
|
using VpSharp.Internal;
|
||||||
using VpSharp.Internal.NativeAttributes;
|
using VpSharp.Internal.NativeAttributes;
|
||||||
using static VpSharp.Internal.Native;
|
using static VpSharp.Internal.Native;
|
||||||
@ -239,7 +240,7 @@ public sealed partial class VirtualParadiseClient
|
|||||||
{
|
{
|
||||||
virtualParadiseObject = await GetObjectAsync(objectId).ConfigureAwait(false);
|
virtualParadiseObject = await GetObjectAsync(objectId).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
catch // any exception: we don't care about GetObject failing. ID is always available
|
catch (VirtualParadiseException) // any exception: we don't care about GetObject failing. ID is always available
|
||||||
{
|
{
|
||||||
virtualParadiseObject = null;
|
virtualParadiseObject = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user