Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultCode is a default service error code DefaultCode string = "SERVICE_ERROR" // NotFoundCode is used for response when transcription ID is nof found NotFoundCode string = "NOT_FOUND" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeExtractor ¶
type CodeExtractor struct { }
CodeExtractor get the error code from erro message
func (CodeExtractor) Get ¶
func (ece CodeExtractor) Get(err string) string
Get searches for [[[ErrCode:xxx]]] in string and returns xxx or SERVICE_ERROR
Click to show internal directories.
Click to hide internal directories.