servererrors

package
v0.0.0-...-47b6295 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldError

type FieldError struct {
	// contains filtered or unexported fields
}

FieldError wraps around the validator error so it can be used and caught specifically

func NewFieldError

func NewFieldError(err validator.FieldError) FieldError

NewFieldError returns a field error

func (FieldError) String

func (q FieldError) String() string

type InActiveUserError

type InActiveUserError struct {
	// contains filtered or unexported fields
}

InActiveUserError defines an inactive user error

func NewInActiveUserError

func NewInActiveUserError(message string) InActiveUserError

NewInActiveUserError creates a new inactive user error

func (InActiveUserError) Error

func (i InActiveUserError) Error() string

Error returns the error message

Jump to

Keyboard shortcuts

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