github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/command/errors.go (about) 1 /* For license and copyright information please see the LEGAL file in the code repository */ 2 3 package cmd 4 5 import ( 6 er "github.com/GeniusesGroup/libgo/error" 7 ) 8 9 // Errors 10 var ( 11 ErrServiceNotFound er.Error 12 ErrServiceNotAcceptCLI er.Error 13 14 ErrFlagNotFound er.Error 15 ErrFlagBadSyntax er.Error 16 ErrFlagNeedsAnArgument er.Error 17 ) 18 19 func init() { 20 ErrServiceNotAcceptCLI.Init("domain/geniuses.group; type=error; package=command; name=service-not-accept-cli") 21 22 ErrFlagNotFound.Init("domain/geniuses.group; type=error; package=command; name=flag-not_found") 23 ErrFlagBadSyntax.Init("domain/geniuses.group; type=error; package=command; name=flag-bad_syntax") 24 ErrFlagNeedsAnArgument.Init("domain/geniuses.group; type=error; package=command; name=flag-needs_an_arguments") 25 }