validationerror

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 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
	CodeJWTIssuerEmpty
)

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