XRPLF / xrpl-dev-portal

Source code for xrpl.org including developer documentation
https://xrpl.org
Other
528 stars 1.02k forks source link

Update documentation for ledger_entry Request #2745

Open ckeshava opened 1 month ago

ckeshava commented 1 month ago
  1. The documentation does not mention "unexpectedLedgerType" error under the "Possible Errors" section. Here are examples of this error from the unit tests. This is the corresponding source code for the origin of the error message.
  2. In case of parsing failures, API v1 returns a generic throw whereas API v2 returns invalidParams error. This recent change is coded here This difference in the behavior between v1 and v2 might need to specified in the docs page.
ckeshava commented 3 weeks ago

Under the "Possible Errors" section, "malformedDocumentID" needs to be documented. This error is returned for incorrectly specified Oracle ledger objects. This is the source code responsible for that error.