Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLocaleError ¶
Types ¶
type LocaleError ¶
LocaleError a response error wrap Err field
func NewError ¶
func NewError() LocaleError
func NewI18nError ¶
func NewI18nError(i18n string) LocaleError
func (LocaleError) Code ¶
func (e LocaleError) Code(code int) LocaleError
func (LocaleError) Error ¶
func (e LocaleError) Error() string
func (LocaleError) FallBack ¶
func (e LocaleError) FallBack(fallback string) LocaleError
func (LocaleError) I18n ¶
func (e LocaleError) I18n(langCode string) LocaleError
func (LocaleError) Status ¶
func (e LocaleError) Status(status int) LocaleError
func (LocaleError) Wrap ¶
func (e LocaleError) Wrap(err error) LocaleError
Click to show internal directories.
Click to hide internal directories.