mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
15 lines
520 B
Go
15 lines
520 B
Go
package errors
|
|
|
|
func NewGrpcError(msg string) (err error) {
|
|
return NewError(ErrorPrefixGrpc, msg)
|
|
}
|
|
|
|
var (
|
|
ErrorGrpcClientFailedToStart = NewGrpcError("client failed to start")
|
|
ErrorGrpcServerFailedToListen = NewGrpcError("server failed to listen")
|
|
ErrorGrpcServerFailedToServe = NewGrpcError("server failed to serve")
|
|
ErrorGrpcNotAllowed = NewGrpcError("not allowed")
|
|
ErrorGrpcSubscribeNotExists = NewGrpcError("subscribe not exists")
|
|
ErrorGrpcUnauthorized = NewGrpcError("unauthorized")
|
|
)
|