Skip to main content
Robust error handling is critical for mission-critical legal applications. The Scout Chat SDK provides strictly-typed error objects.

Catching Errors

try {
  await chat.sendMessage('...');
} catch (error) {
  if (error.code === 'CONTEXT_OVERFLOW') {
    // Handle large matter metadata
  }
}

Error Codes

  • AUTH_FAILED: Invalid or expired JWT.
  • VAULT_UNREACHABLE: Temporary S3 or network failure.
  • AGENT_TIMEOUT: The agentic reasoning loop exceeded the firm’s QoS limit.