-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherrors.go
22 lines (20 loc) · 1.81 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package melonade_client_go
import (
"github.com/devit-tel/goerror"
)
var (
ErrUnableParseUrlRequest = goerror.DefineBadRequest("UnableParseUrlRequest", "unable parse url request")
ErrUnableParseInputPayload = goerror.DefineBadRequest("UnableParseInputPayload", "unable parse input payload")
ErrUnableParseOutputPayload = goerror.DefineInternalServerError("UnableParseOutputPayload", "unable parse output payload")
ErrUnableCreateRequestStartWorkflow = goerror.DefineInternalServerError("UnableCreateRequestStartWorkflow", "unable create request start workflow")
ErrUnableStartWorkflow = goerror.DefineInternalServerError("UnableStartWorkflow", "unable start workflow")
ErrUnableParseKafkaVersion = goerror.DefineInternalServerError("UnableParseKafkaVersion", "unable parse kafka version")
ErrUnableToCreateProducer = goerror.DefineInternalServerError("UnableToCreateProducer", "unable to create producer")
ErrUnableToCreateConsumer = goerror.DefineInternalServerError("UnableToCreateConsumer", "unable to create consumer")
ErrRequestFailed = goerror.DefineInternalServerError("ErrRequestFailed", "request failed")
ErrReadResponseBodyFailed = goerror.DefineInternalServerError("ErrReadResponseBodyFailed", "read response body failed")
ErrParseResponseBodyFailed = goerror.DefineInternalServerError("ErrParseResponseBodyFailed", "parse response body failed")
ErrParseRequestBodyFailed = goerror.DefineInternalServerError("ErrParseRequestBodyFailed", "parse request body failed")
ErrRequestNotSuccess = goerror.DefineInternalServerError("ErrRequestNotSuccess", "request not success")
ErrTransactionNotFound = goerror.DefineInternalServerError("ErrTransactionNotFound", "transaction not found")
)