github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/examples/gno.land/p/demo/blog/errors.gno (about)

     1  package blog
     2  
     3  import "errors"
     4  
     5  var (
     6  	ErrPostTitleMissing  = errors.New("post title is missing")
     7  	ErrPostSlugMissing   = errors.New("post slug is missing")
     8  	ErrPostBodyMissing   = errors.New("post body is missing")
     9  	ErrPostSlugExists    = errors.New("post with specified slug already exists")
    10  	ErrPostPubDateExists = errors.New("post with specified publication date exists")
    11  	ErrPostTitleExists   = errors.New("post with specified title already exists")
    12  	ErrNoSuchPost        = errors.New("no such post")
    13  )