# 錯誤訊息

如果出錯，SDK 將會拋出錯誤 (errors)/異常 (exception) (擴充語言的預設物件 (default object))，並附上錯誤代碼 (error-code)，說明出錯的原因。請注意，在大多數情況下，提款/提幣功能 (payout-function) 會返回錯誤，而非拋出。詳情請參閱[提款/提幣頁面](/traditional-chinese/sdk/han-shi-functions/ti-kuan-ti-bi-payout.md)。

以下是所有 Akashic-特有的錯誤列表，這些錯誤可能會被拋出或回調，以及如果遇到這些錯誤該怎麼做。

<table><thead><tr><th>錯誤訊息</th><th>解釋</th><th>該怎麼做</th></tr></thead><tbody><tr><td><pre><code><strong>OTK_ONBOARDING_FAILED
</strong></code></pre></td><td>未能在 <a href="/pages/amF8ehd9iLs1Bncgprwq#akashicchain">AkahicChain</a> 上設定測試用的 OTK。</td><td>再試一次。如果問題仍然存在，請聯絡客戶支援。</td></tr><tr><td><pre><code>INVALID_PRIVATE_KEY_FORMAT
</code></pre></td><td>您用於實體化 SDK 的密鑰對或恢復密語有錯誤。</td><td>再次檢查您的變數 (variables)，然後再試一次。</td></tr><tr><td><pre><code><strong>WALLET_CREATION_FAILURE
</strong></code></pre></td><td>在 AkashicChain 上建立 L1-錢包失敗。</td><td>再試一次。如果問題仍然存在，請聯絡客戶支援。</td></tr><tr><td><pre><code><strong>UNHEALTHY_WALLET
</strong></code></pre></td><td>在 AkashicChain 上建立了一個錢包，但無法驗證其安全性。</td><td>再試一次。如果問題仍然存在，請聯絡客戶支援。</td></tr><tr><td><pre><code>ACCESS_DENIED
</code></pre></td><td>如果嘗試在正式環境中存取 OTK，則會被拋出。</td><td>這是不允許的。請勿這樣做。</td></tr><tr><td><pre><code>L2ADDRESS_NOT_FOUND
</code></pre></td><td>如果在嘗試執行<a href="/pages/amF8ehd9iLs1Bncgprwq#di-er-ceng-layer2">第二層</a>交易時，出現格式化錯誤或地址不存在。</td><td>再次檢查您的輸入並再次嘗試。</td></tr><tr><td><pre><code>NOT_SIGNED_UP
</code></pre></td><td>您未在 AkashicPay.com 上進行正確的設置就嘗試實體化SDK。</td><td>在 AkashicPay.com 上完<a href="/pages/Mj1w3L6Ny7r4PjzgCzwf">成設定</a>，然後再試一次。</td></tr><tr><td><pre><code>FUNDS_EXCEEDED
</code></pre></td><td>您嘗試提取的資金超過您的可用資金。</td><td>檢查您的餘額和輸入，然後再試一次。</td></tr><tr><td><pre><code>ASSIGNMENT_FAILED
</code></pre></td><td>在 AkashicChain 上建立 L1-錢包失敗。</td><td>再試一次。如果問題仍然存在，請聯絡客戶支援。</td></tr><tr><td><pre><code>INVALID_PARAMETER
</code></pre></td><td> (僅限 JAVA 及 C#)。給予函數 (function) 的參數 (argument) 無效。</td><td>仔細檢查您的輸入是否有語法 (syntax) 錯誤。</td></tr><tr><td><pre><code>UNKNOWN_ERROR
</code></pre></td><td>有出現其他的問題。</td><td>檢查錯誤訊息的詳細內容，以瞭解更多資訊。稍作延遲後重試。如果錯誤仍然存在，請聯絡客戶支援。</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.akashicpay.com/traditional-chinese/sdk/cuo-wu-xun-xi-errors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
