krberror

package
v8.5.10 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package krberror provides error type and functions for gokrb5.

Index

Constants

View Source
const (
	EncodingError   = "Encoding_Error"
	NetworkingError = "Networking_Error"
	DecryptingError = "Decrypting_Error"
	EncryptingError = "Encrypting_Error"
	ChksumError     = "Checksum_Error"
	KRBMsgError     = "KRBMessage_Handling_Error"
	ConfigError     = "Configuration_Error"
	KDCError        = "KDC_Error"
)

Error type descriptions.

Variables

This section is empty.

Functions

This section is empty.

Types

type Krberror

type Krberror struct {
	RootCause string
	EText     []string
}

Krberror is an error type for gokrb5

func Errorf

func Errorf(err error, et, format string, a ...interface{}) Krberror

Errorf appends to or creates a new Krberror.

func New

func New(et, s string) Krberror

New creates a new instance of Krberror.

func NewErrorf

func NewErrorf(et, format string, a ...interface{}) Krberror

NewErrorf creates a new Krberror from a formatted string.

func (*Krberror) Add

func (e *Krberror) Add(et string, s string)

Add another error statement to the error.

func (Krberror) Error

func (e Krberror) Error() string

Error function to implement the error interface.

Jump to

Keyboard shortcuts

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