|
|
# Too high block number
|
|
|
|
|
|
## Info
|
|
|
|
|
|
- Error occurs when user try to find block number higher that last mined block. ```hafbe_exceptions.raise_block_num_too_high_exception```
|
|
|
- Error code : ```406```
|
|
|
- Error id : ```1```
|
|
|
- Error type : ```Not Acceptable```
|
|
|
- Error message : ```block_num ''%s'' is higher than head block (%s).```
|
|
|
|
|
|
## Method
|
|
|
|
|
|
```hafbe_endpoints.get_head_block_num```
|
|
|
|
|
|
# Unknown hash
|
|
|
|
|
|
## Info
|
|
|
|
|
|
- Error occurs when user try to find block or transaction with non-existing hash. ```hafbe_exceptions.raise_unknown_hash_exception ```
|
|
|
- Error code : ```404```
|
|
|
- Error id : ```2```
|
|
|
- Error type : ```Not Found```
|
|
|
- Error message : ```Block or transaction hash ''%s'' does not exist in database.```
|
|
|
|
|
|
## Method
|
|
|
|
|
|
```hafbe_endpoints.get_input_type```
|
|
|
|
|
|
# Unknown input
|
|
|
|
|
|
## Info
|
|
|
|
|
|
- Error occurs when user types non-valid characters inside input box (search is available only by block, block hash, transaction id, transaction hash, username). ```hafbe_exceptions.raise_unknown_input_exception```
|
|
|
- Error code : ```500```
|
|
|
- Error id : ```3```
|
|
|
- Error type : ```Internal Server Error```
|
|
|
- Error message : ```Type of received input is unknown.```
|
|
|
- Error data : ```Received input: ''%s''.```
|
|
|
|
|
|
## Method
|
|
|
|
|
|
```hafbe_endpoints.get_input_type```
|
|
|
|
|
|
# Operartions limit
|
|
|
|
|
|
## Info
|
|
|
|
|
|
- Error occurs when operations limit filter is set too low. ```hafbe_exceptions.raise_ops_limit_exception```
|
|
|
- Error code : ```406```
|
|
|
- Error id : ```4```
|
|
|
- Error type : ```Not Acceptable```
|
|
|
- Error message : ```Start is less than limit - 1```
|
|
|
- Error data : ```%s < %s - 1```
|
|
|
|
|
|
## Method
|
|
|
|
|
|
- ```hafbe_endpoints.get_ops_by_account```
|
|
|
- ```hafbe_endpoints.get_ops_by_block```
|
|
|
|
|
|
# Unknown column
|
|
|
|
|
|
## Info
|
|
|
|
|
|
- Error occurs when operations filter column is not found. ```hafbe_exceptions.raise_no_such_column_exception```
|
|
|
- Error code : ```406```
|
|
|
- Error id : ```5```
|
|
|
- Error type : ```Not Acceptable```
|
|
|
- Error message : ```Provided ''\_order_by'' column does not exist```
|
|
|
- Error data : ``` ''%s'' not in (account, vests, account_vests, proxied_vests, timestamp)```
|
|
|
|
|
|
## Method
|
|
|
|
|
|
```hafbe_endpoints.get_witness_voters```
|
|
|
|
|
|
# Unknown order
|
|
|
|
|
|
## Info
|
|
|
|
|
|
- Error occurs when operations ordering filter is unknown (available ordering : ascending,descending). ```hafbe_exceptions.raise_no_such_order_exception```
|
|
|
- Error code : ```406```
|
|
|
- Error id : ```6```
|
|
|
- Error message : ```Provided ''\_order_is'' does not exist```
|
|
|
- Error data : ```''%s'' is not ''asc'' or ''desc''```
|
|
|
|
|
|
## Method
|
|
|
|
|
|
```hafbe_endpoints.get_witness_voters``` |
|
|
\ No newline at end of file |