github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/service/errors.go (about)

     1  /* For license and copyright information please see the LEGAL file in the code repository */
     2  
     3  package service
     4  
     5  import (
     6  	er "github.com/GeniusesGroup/libgo/error"
     7  )
     8  
     9  // Declare package errors
    10  var (
    11  	ErrNotFound                   er.Error
    12  	ErrServiceNotAcceptSRPC       er.Error
    13  	ErrServiceNotAcceptSRPCDirect er.Error
    14  	ErrServiceNotAcceptHTTP       er.Error
    15  )
    16  
    17  func init() {
    18  	ErrNotFound.Init("domain/geniuses.group; type=error; package=service; name=not_found")
    19  	ErrServiceNotAcceptSRPC.Init("domain/geniuses.group; type=error; package=service; name=service_not_accept_srpc")
    20  	ErrServiceNotAcceptSRPCDirect.Init("domain/geniuses.group; type=error; package=service; name=service_not_accept_direct_srpc")
    21  	ErrServiceNotAcceptHTTP.Init("domain/geniuses.group; type=error; package=service; name=service_not_accept_http")
    22  }