Documentation Index
Fetch the complete documentation index at: https://docs.ensync.cloud/llms.txt
Use this file to discover all available pages before exploring further.
Usage
try {
await client.publish("order/created", ["partner-id"], payload);
} catch (error) {
if (error instanceof EnSyncError) {
console.error("EnSync Error:", error.message);
if (error.name === "EnSyncConnectionError") {
// Retry connection
} else if (error.name === "EnSyncPublishError") {
// Log and alert
}
}
}
try:
await client.publish("order/created", ["partner-id"], payload)
except EnSyncError as error:
print(f"EnSync Error: {error}")
if isinstance(error, EnSyncConnectionError):
# Retry connection
pass
elif isinstance(error, EnSyncPublishError):
# Log and alert
pass
Error Types
| Error Type | Description |
|---|
EnSyncConnectionError | Connection or authentication issues |
EnSyncPublishError | Problems publishing events |
EnSyncSubscriptionError | Subscription-related errors |
EnSyncGenericError | Other errors |