errors

package
v0.0.0-...-2c276d8 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: Apache-2.0 Copyright © 2022 Roberto Hidalgo <nidito@un.rob.mx>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToHTTP

func ToHTTP(err error) (string, int)

Types

type AuthError

type AuthError interface {
	Error() string
	Code() int
	Log()
}

type HTTPError

type HTTPError interface {
	Error() string
	Code() int
}

type InvalidCredentials

type InvalidCredentials struct {
	Status int
	Reason string
}

func (InvalidCredentials) Code

func (err InvalidCredentials) Code() int

func (InvalidCredentials) Error

func (err InvalidCredentials) Error() string

func (InvalidCredentials) Log

func (err InvalidCredentials) Log()

type WebAuthFlowChallenge

type WebAuthFlowChallenge struct {
	Flow string
	Data any
}

func (WebAuthFlowChallenge) Code

func (c WebAuthFlowChallenge) Code() int

func (WebAuthFlowChallenge) Error

func (c WebAuthFlowChallenge) Error() string

func (WebAuthFlowChallenge) Header

func (c WebAuthFlowChallenge) Header() string

func (WebAuthFlowChallenge) Log

func (c WebAuthFlowChallenge) Log()

Jump to

Keyboard shortcuts

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