<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "BitcoinKernel",
  "identifier" : "/documentation/BitcoinKernel/KernelError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "BitcoinKernel"
    ],
    "preciseIdentifier" : "s:13BitcoinKernel0B5ErrorO"
  },
  "title" : "KernelError"
}
-->

# KernelError

Errors from the Bitcoin kernel C API.

```
enum KernelError
```

## Overview

The kernel C API is deliberately minimal: `btck_*_create` functions
return `NULL` on failure with no error code, no message, and no way to
distinguish causes programmatically. [`KernelError`](/documentation/BitcoinKernel/KernelError) preserves the only
information the C API actually provides — which call failed — and
invites callers to re-run under a [`LoggingConnection`](/documentation/BitcoinKernel/LoggingConnection) to see the
underlying reason in kernel log output.