pdpcodes

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDescByCode

func GetDescByCode(code SudirPDPCode) (string, bool)

func GetDescByFindCode

func GetDescByFindCode(code FindPDPCode) (string, bool)

func NewError

func NewError(code SudirPDPCode, args ...interface{}) error

Types

type FindPDPCode

type FindPDPCode int32
const (
	FindOK                     FindPDPCode = 0
	FindNotFound               FindPDPCode = 4
	FindNoAttributeMapping     FindPDPCode = 7
	FindWrongAttributeValue    FindPDPCode = 10
	FindNoAttributeParams      FindPDPCode = 11
	FindNoAttributeProfile     FindPDPCode = 12
	FindNotSupported           FindPDPCode = 14
	FindNoAttributeValue       FindPDPCode = 104
	FindExtSystemNotRegistered FindPDPCode = 111
	FindWrongObjectType        FindPDPCode = 112
	FindNoAnyCond              FindPDPCode = 113
	FindInternalError          FindPDPCode = -1
	FindNotAccessError         FindPDPCode = -2
)

type PdpError

type PdpError struct {
	Code SudirPDPCode
	Desc string
	Args []interface{}
}

func (*PdpError) Error

func (e *PdpError) Error() string

func (*PdpError) GetCode

func (e *PdpError) GetCode() SudirPDPCode

func (*PdpError) GetMessage

func (e *PdpError) GetMessage() string

type SudirPDPCode

type SudirPDPCode int32
const (
	OK                        SudirPDPCode = 0
	EntryNotSupported         SudirPDPCode = 2
	NotFound                  SudirPDPCode = 4
	NoAttributeMapping        SudirPDPCode = 7
	WrongAttributeValue       SudirPDPCode = 10
	SSOAlreadyExists          SudirPDPCode = 12
	NotSupported              SudirPDPCode = 14
	AttributeTypeNotSupported SudirPDPCode = 20
	NoAttributeParams         SudirPDPCode = 21
	NoAttributeProfile        SudirPDPCode = 22
	AbsentEntryName           SudirPDPCode = 101
	SSONotFound               SudirPDPCode = 102
	SSONotProvided            SudirPDPCode = 103
	CantCreateUser            SudirPDPCode = 107
	AttributeNotAccepted      SudirPDPCode = 110
	ExtSystemNotRegistered    SudirPDPCode = 111
	UnableExtUpload           SudirPDPCode = 112
	CantDeleteUserWoSNILS     SudirPDPCode = 121
	CantDeletePassWoPass      SudirPDPCode = 122
	CantUpdPassWoSNILS        SudirPDPCode = 123
	CantDeleteSNILS           SudirPDPCode = 124
	CantUpdSNILSWoFIO         SudirPDPCode = 132
	CantUpdSNILSWoBirth       SudirPDPCode = 133
	CantUpdPassWoData         SudirPDPCode = 134
	PhoneExists               SudirPDPCode = 135
	RelativeExists            SudirPDPCode = 136
	IncorrectData             SudirPDPCode = 137
	InternalError             SudirPDPCode = -1
	NotAccessError            SudirPDPCode = -2
)

Jump to

Keyboard shortcuts

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