---
title: "Error handling"
description: "Learn how to handle AerospikeError and manage server-side result codes in the Aerospike Go client."
---

# Error handling

> For the complete documentation index see: [llms.txt](https://aerospike.com/docs/llms.txt)
> 
> All documentation pages available in markdown.

If an error occurs as a result of the database operation, an `AerospikeError` returns.

The `AerospikeError` `ResultCode()` method describes the exact cause of the error given by the Aerospike server.

Errors can also occur internally on the client side, either originating from the client code or from within the _go stdlib_. These errors are not converted to an `AerospikeError` instance unless they are `io.Timeout` errors.