github.com/sixexorg/magnetic-ring@v0.0.0-20191119090307-31705a21e419/errors/state_error.go (about)

     1  package errors
     2  
     3  import (
     4  	"errors"
     5  )
     6  
     7  var (
     8  	ERR_STATE_ACCOUNT_EMPTY = errors.New("Data does not exist.")
     9  
    10  	ERR_STATE_DIRTY_DATA = errors.New("No such data is defined.")
    11  	ERR_STATE_LACK_GAS   = errors.New("Insufficient account Energy.")
    12  	ERR_STATE_GAS_OVER   = errors.New("Energy not enough.")
    13  	ERR_STATE_LACK_BOX   = errors.New("Insufficient account crystal.")
    14  
    15  	ERR_STATE_NONCE_USED                  = errors.New("Account state nonce has been used.")
    16  	ERR_STATE_ACCOUNT_NONCE_DISCONTINUITY = errors.New("account state nonce discontinuity.")
    17  	ERR_STATE_BONUS_NOT_ENOUGH            = errors.New("The bonus was not enough to cover the transaction costs.")
    18  	ERR_STATE_LEAGUE_NONCE_BIGGER         = errors.New("league state nonce more bigger.")
    19  	ERR_STATE_LEAGUE_NONCE_DISCONTINUITY  = errors.New("league state nonce discontinuity.")
    20  
    21  	ERR_STATE_LEAGUE_RATE_DIFF = errors.New("league rate not match.")
    22  
    23  	ERR_STATE_LEAGUE_ONCE = errors.New("an account can only perform one operation about add or exit in league.")
    24  
    25  	ERR_STATE_SYMBOL_EXISTS = errors.New("symbol already exists.")
    26  
    27  	ERR_STATE_LEAGUE_EXISTS = errors.New("league already exists.")
    28  	ERR_STATE_FEE_NOT_VAILD = errors.New("Fee not vaild.")
    29  
    30  	ERR_STATE_MEMBER_ILLEGAL_STATUS = errors.New("Specifies that the state is illegal. Use another state.")
    31  )