For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
GitHubCUDA-X
    • Home
    • Installation
  • Getting Started
    • Introduction
    • Integrations
    • Use-cases
  • User Guide
    • API Guide
    • Benchmarking Guide
    • Compatibility
    • Integration Patterns
    • Advanced Topics
    • References
  • Developer Guide
    • Coding Guidelines
    • ABI Stability
    • Link-time Optimization
    • Contributing
  • API Reference
    • C API Documentation
    • Cpp API Documentation
      • Cluster Agglomerative
      • Cluster Kmeans
      • Cluster Spectral
      • Common Types
        • Execution Resources
        • Dense Array Views
        • Dense View Factories
        • Owning Dense Arrays
        • Owning Array Factories
        • Layouts and Extents
        • Sparse Array Types
        • Copy, Serialization, and Utility APIs
        • Errors and Logging
      • Distance Distance
      • Distance Grammian
      • Neighbors All Neighbors
      • Neighbors Ball Cover
      • Neighbors Brute Force
      • Neighbors Cagra
      • Neighbors Common
      • Neighbors Dynamic Batching
      • Neighbors Epsilon Neighborhood
      • Neighbors HNSW
      • Neighbors Composite Index
      • Neighbors IVF Flat
      • Neighbors IVF PQ
      • Neighbors NN Descent
      • Neighbors Refine
      • Neighbors Scann
      • Neighbors Tiered Index
      • Neighbors Vamana
      • Preprocessing Quantize Binary
      • Preprocessing PCA
      • Preprocessing Quantize PQ
      • Preprocessing Quantize Scalar
      • Preprocessing Spectral Embedding
      • Selection Select K
      • Stats Silhouette Score
      • Stats Trustworthiness Score
      • Util Cutlass Utils
      • Util File Io
    • Python API Documentation
    • Java API Documentation
    • Rust API Documentation
    • Go API Documentation
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Manage My Privacy | Do Not Sell or Share My Data | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogocuVS
GitHubCUDA-X
On this page
  • raft::exception
  • RAFT_EXPECTS
  • RAFT_FAIL
  • RAFT_CUDA_TRY
  • RAFT_LOG_DEBUG
API ReferenceCpp API DocumentationCommon Types

Errors and Logging

||View as Markdown|
Previous

Copy, Serialization, and Utility APIs

Next

Distance Distance

NVIDIA cuVS public headers also use public RAFT error and logging facilities in inline code paths.

raft::exception

Source header: raft/core/error.hpp

Exception base used by some NVIDIA cuVS utility errors.

1class exception;

RAFT_EXPECTS

Source header: raft/core/error.hpp

Validates a condition and raises a RAFT exception if it is false.

1#define RAFT_EXPECTS(condition, reason, ...)

RAFT_FAIL

Source header: raft/core/error.hpp

Raises a RAFT exception with a formatted message.

1#define RAFT_FAIL(reason, ...)

RAFT_CUDA_TRY

Source header: raft/core/error.hpp

Checks a CUDA runtime call and raises a RAFT exception on failure.

1#define RAFT_CUDA_TRY(call)

RAFT_LOG_DEBUG

Source header: raft/core/logger.hpp

Emits a debug log message through RAFT logging.

1#define RAFT_LOG_DEBUG(message, ...)