mazinden / staking-api

Staking API provides seamless integration for initiating staking requests and accessing staking data.
0 stars 1 forks source link

Error descriptions #25

Open mazinden opened 11 months ago

mazinden commented 11 months ago

Check error descriptions:

Update error descriptions in code:

elkor-alisa commented 8 months ago

We need to choose between two formats of descriptions (long or short). Here are the examples for 401 Unauthorized exceptions:

WrongTokenException

NoTokenException

elkor-alisa commented 7 months ago

Here are what I found while examining the error descriptions:

  1. There are no exceptions for Solana Transactions, Account and Staking at all.

  2. For Celestia staking, error descriptions duplicate the ones for Cosmos with specific Cosmos terms, e.g., for Create Staking Request, InsufficientFundsOnCosmosAccountException is used.

  3. In the responses scheme, there're three main parameters: сode, message, and name. But in Example values, code, message, and type are specified. Is it okay? Which option is correct?

elkor-alisa commented 7 months ago

The table with descriptions: https://docs.google.com/spreadsheets/d/1HtsXhQq8RUG8iCfInXVlKl0cZpjPfR9W4NUMIOaxQ9M/edit?usp=sharing