validationerror

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code int
const (
	CodeJWTGeneral Code = iota
	CodeJWTIssuerMismatch
	CodeJWTInvalidData
	CodeJWTInvalidSignature
	CodeJWTBefore
	CodeJWTExpired
)

type ValidationError

type ValidationError struct {
	Message string
	Code    Code
}

func New

func New(message string, code Code) *ValidationError

New returns new validation error

func (*ValidationError) Error

func (v *ValidationError) Error() string

Error implements error interface

Jump to

Keyboard shortcuts

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