github.com/0chain/gosdk@v1.17.11/constants/errors.go (about)

     1  // Package constants provides constants.
     2  // The convention of naming is to use MixedCaps or mixedCaps rather than underscores to write multiword names. https://golang.org/doc/effective_go#mixed-caps
     3  package constants
     4  
     5  import "errors"
     6  
     7  var (
     8  	// ErrInvalidParameter parameter is not specified or invalid
     9  	ErrInvalidParameter = errors.New("invalid parameter")
    10  
    11  	// ErrUnableHash failed to hash with unknown exception
    12  	ErrUnableHash = errors.New("unable to hash")
    13  
    14  	// ErrUnableWriteFile failed to write bytes to file
    15  	ErrUnableWriteFile = errors.New("unable to write file")
    16  
    17  	// ErrNotImplemented feature/method is not implemented yet
    18  	ErrNotImplemented = errors.New("Not Implemented")
    19  
    20  	// ErrNotLockedWritMarker failed to lock WriteMarker
    21  	ErrNotLockedWritMarker = errors.New("failed to lock WriteMarker")
    22  
    23  	// ErrNotUnlockedWritMarker failed to unlock WriteMarker
    24  	ErrNotUnlockedWritMarker = errors.New("failed to unlock WriteMarker")
    25  
    26  	// ErrInvalidHashnode invalid hashnode
    27  	ErrInvalidHashnode = errors.New("invalid hashnode")
    28  
    29  	// ErrBadRequest bad request
    30  	ErrBadRequest = errors.New("bad request")
    31  
    32  	// ErrNotFound ref not found
    33  	ErrNotFound = errors.New("ref not found")
    34  
    35  	// ErrFileOptionNotPermitted requested operation is not allowed on this allocation (file_options)
    36  	ErrFileOptionNotPermitted = errors.New("this options for this file is not permitted for this allocation")
    37  )