err

package
v0.0.0-...-4c7982d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL