Skip to content

Instantly share code, notes, and snippets.

@Phathdt
Created May 16, 2022 06:43
Show Gist options
  • Save Phathdt/f3b341e343d2aafb26d867085141c3db to your computer and use it in GitHub Desktop.
Save Phathdt/f3b341e343d2aafb26d867085141c3db to your computer and use it in GitHub Desktop.
ErrClearCache = sdkcm.CustomError("ErrClearCache", "error when clear cache")
//org
ErrFindOrganization = sdkcm.CustomError("ErrFindOrganization", "error when find organization")
//app
ErrUpdateApp = sdkcm.CustomError("ErrUpdateApp", "error when update app")
ErrFindApp = sdkcm.CustomError("ErrFindApp", "error when find app")
//channel
ErrFindChannel = sdkcm.CustomError("ErrFindChannel", "error when find channel")
ErrListChannel = sdkcm.CustomError("ErrListChannel", "error when list channel")
ErrUpdateChannel = sdkcm.CustomError("ErrUpdateChannel", "error when update channel")
ErrCreateChannel = sdkcm.CustomError("ErrCreateChannel", "error when create channel")
//channel credential
ErrFindChannelCredential = sdkcm.CustomError("ErrFindChannelCredential", "error when find channel credential")
ErrUpdateChannelCredential = sdkcm.CustomError("ErrUpdateChannelCredential", "error when update channel credential")
ErrCreateChannelCredential = sdkcm.CustomError("ErrCreateChannelCredential", "error when create channel credential")
//im
ErrUploadImage = sdkcm.CustomError("ErrUploadImage", "error when upload image")
ErrListMessage = sdkcm.CustomError("ErrListMessage", "error when list message")
ErrListSession = sdkcm.CustomError("ErrListSession", "error when list session")
ErrGetSession = sdkcm.CustomError("ErrGetSession", "error when get session")
ErrGetThread = sdkcm.CustomError("ErrGetThread", "error when get thread")
ErrListThread = sdkcm.CustomError("ErrListThread", "error when get thread")
ErrSessionDetail = sdkcm.CustomError("ErrSessionDetail", "error when get session detail")
ErrSendMessage = sdkcm.CustomError("ErrSendMessage", "error when send message")
ErrFindLatestMessage = sdkcm.CustomError("ErrFindLatestMessage", "error when find latest message")
ErrUpdateSession = sdkcm.CustomError("ErrUpdateSession", "error when update session")
ErrBulkInsertThread = sdkcm.CustomError("ErrBulkInsertThread", "error when bulk insert thread")
//shopee
ErrListConversation = sdkcm.CustomError("ErrListConversation", "error when list Conversation")
//file
ErrUploadFile = sdkcm.CustomError("ErrUploadFile", "error when upload file")
ErrSaveFile = sdkcm.CustomError("ErrSaveFile", "error when save file")
//redis
ErrUnmarshal = sdkcm.CustomError("ErrUnmarshal", "error when unmarshal")
// lazada
ErrBulkInsertSession = sdkcm.CustomError("ErrBulkInsertSession", "error when bulk insert session")
ErrBulkInsertMessage = sdkcm.CustomError("ErrBulkInsertMessage", "error when bulk insert message")
ErrPushQueue = sdkcm.CustomError("ErrPushQueue", "error when push data to queue")
ErrRpopQueue = sdkcm.CustomError("ErrRpopQueue", "error when pop data to queue")
ErrListAppChannel = sdkcm.CustomError("ErrListAppChannel", "error when list app channel")
// seller
ErrGetSeller = sdkcm.CustomError("ErrGetSeller", "error when get seller")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment