API reference¶
Every exported function, generated from the package's help pages. In R, the
same text is available with ?function_name.
Classed errors¶
| Topic | Functions |
|---|---|
| Create a dataexcept error | new_dataexcept_error() |
| Validation failures | validation_error() |
| Data frame failures | missing_column_error(), dtype_mismatch_error(), merge_key_error() |
| Data and modelling failures | data_loading_error(), missing_data_error(), model_training_error(), convergence_error(), prediction_error() |
| Data quality failures | data_format_error(), schema_mismatch_error(), data_drift_error(), data_leakage_error(), data_imbalance_error(), outlier_detection_error() |
| Model evaluation and training failures | model_evaluation_error(), cross_validation_error(), hyperparameter_error(), training_timeout_error(), model_serialization_error(), overfitting_error(), underfitting_error(), resource_limit_error() |
| File failures | file_read_error(), file_write_error() |
| Database, network and service failures | database_connection_error(), query_execution_error(), transaction_error(), host_unreachable_error(), connection_timeout_error(), api_error() |
| Pipeline and external service failures | external_service_error(), service_timeout_error(), service_authentication_error(), service_authorization_error(), retry_limit_exceeded_error(), storage_error() |
| Job failures | authentication_error(), authorization_error(), configuration_error(), resource_not_found_error(), operation_timeout_error() |
| Data engineering failures | data_transformation_error(), etl_job_error(), batch_processing_error() |
| The dataexcept condition classes | dataexcept_classes() |
Failure metadata¶
| Topic | Functions |
|---|---|
| Describe whether a failure can be recovered from | failure_metadata(), with_failure_metadata() |
| Read the failure metadata of a condition | condition_failure(), is_retryable() |
Groups and wrapping¶
| Topic | Functions |
|---|---|
| Report several failures as one | condition_group(), group_members(), collect_errors() |
| Turn errors from an expression into a dataexcept error | wrap_errors() |
Envelopes¶
| Topic | Functions |
|---|---|
| Write a condition as a DataExcept envelope | condition_to_envelope(), condition_to_json(), condition_type() |
| Read a DataExcept envelope back into an R condition | envelope_to_condition() |
| Check that a payload is a valid envelope | validate_envelope(), is_envelope() |
| The envelope JSON Schema | envelope_schema(), envelope_schema_version(), envelope_schema_id() |
Observability¶
| Topic | Functions |
|---|---|
| Describe where an operation is running | operation_context(), operation_index_fields() |
| A failure event for logs and observability tools | condition_to_event(), condition_to_event_json() |
| OpenTelemetry attributes for a condition | condition_to_otel_attributes() |
| Record a condition on an OpenTelemetry span | record_otel_exception() |
| Correlate an operation context with the active OpenTelemetry span | operation_context_from_otel() |
| Write a condition in the shape Pino logs errors | condition_to_pino(), condition_to_pino_json(), envelope_to_pino() |
| The Pino profile JSON Schema | pino_schema() |
Classed warnings¶
| Topic | Functions |
|---|---|
| Give base R's text-only warnings a class | with_classed_warnings(), classify_warning(), classed_warning_rules() |
Redaction¶
| Topic | Functions |
|---|---|
| Remove credentials from URLs | redact_url(), redact_urls_in_text() |
Package¶
| Topic | Functions |
|---|---|
| dataexcept: structured, classed failures that cross language boundaries |