github.com/ronaksoft/rony@v0.16.26-0.20230807065236-1743dbfe6959/errors/rony.go (about)

     1  package errors
     2  
     3  import (
     4  	"fmt"
     5  )
     6  
     7  /*
     8     Creation Time: 2021 - May - 21
     9     Created by:  (ehsan)
    10     Maintainers:
    11        1.  Ehsan N. Moosa (E2)
    12     Auditor: Ehsan N. Moosa (E2)
    13     Copyright Ronak Software Group 2020
    14  */
    15  
    16  var (
    17  	ErrInvalidRequest     = GenInvalidErr("REQUEST", nil)
    18  	ErrInternalServer     = GenInternalErr("SERVER", nil)
    19  	ErrInvalidHandler     = GenInvalidErr("HANDLER", nil)
    20  	ErrUnavailableRequest = GenUnavailableErr("REQUEST", nil)
    21  )
    22  
    23  var (
    24  	ErrClusterNotSet             = fmt.Errorf("cluster is not set")
    25  	ErrGatewayNotSet             = fmt.Errorf("gateway is not set")
    26  	ErrTunnelNotSet              = fmt.Errorf("tunnel is not set")
    27  	ErrUnexpectedResponse        = fmt.Errorf("unexpected response")
    28  	ErrUnexpectedTunnelResponse  = fmt.Errorf("unexpected tunnel response")
    29  	ErrMemberNotFound            = fmt.Errorf("member not found")
    30  	ErrGatewayAlreadyInitialized = fmt.Errorf("gateway already initialized")
    31  	ErrNoTunnelAddrs             = fmt.Errorf("tunnel address does not found")
    32  	ErrRetriesExceeded           = WrapText("maximum retries exceeded")
    33  	ErrConnectionNotExists       = fmt.Errorf("connection does not exists")
    34  	ErrAlreadyExists             = fmt.Errorf("already exists")
    35  	ErrEmptyObject               = fmt.Errorf("empty object")
    36  	ErrNotFound                  = fmt.Errorf("not found")
    37  )