package krberror

import "github.com/jcmturner/gokrb5/v8/krberror"

Package krberror provides error type and functions for gokrb5.

Index

Constants

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.

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.

Source Files

error.go

Version
v8.4.1
Published
Jul 25, 2020
Platform
linux/amd64
Imports
2 packages
Last checked
5 hours ago

Tools for package owners.