> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orca.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

> Reference guide for Anchor and Whirlpool program error codes.

# Errors

Whirlpool errors are emitted as a hexadecimal number (ex. 0x1771).

Convert this value back to decimal to determine where the error is coming from.

## Anchor Errors (error code \< 6000)

Anchor

* > \= 100 Instruction error codes
* > \= 1000 IDL error codes
* > \= 2000 constraint error codes
* > \= 3000 account error codes
* \= 4000 state error code
* > \= 4100 misc error codes
* \= 5000 deprecated error code

<Card title="🔗 Anchor Errors" icon="github" href="https://docs.rs/anchor-lang/latest/anchor_lang/error/enum.ErrorCode.html">
  [https://docs.rs/anchor-lang/latest/anchor\_lang/error/enum.ErrorCode.html](https://docs.rs/anchor-lang/latest/anchor_lang/error/enum.ErrorCode.html)
</Card>

## Whirlpool Errors (error code >= 6000)

Match your error hex code with this page to find your Whirlpool errors.

<Card title="🔗 Whirlpools Anchor Errors" icon="github" href="https://github.com/orca-so/whirlpools/blob/main/programs/whirlpool/src/errors.rs">
  [https://github.com/orca-so/whirlpools/blob/main/programs/whirlpool/src/errors.rs](https://github.com/orca-so/whirlpools/blob/main/programs/whirlpool/src/errors.rs)
</Card>
