e2errors

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromGRPC

func FromGRPC(err error) error

FromGRPC creates a typed error from a gRPC error

func IsE2APError

func IsE2APError(err error) bool

IsE2APError checks if a given error is an E2AP error

func IsMiscControlProcessingOverload

func IsMiscControlProcessingOverload(err error) bool

IsMiscControlProcessingOverload checks whether the given error is a MiscControlProcessingOverload error

func IsMiscHardwareFailure

func IsMiscHardwareFailure(err error) bool

IsMiscHardwareFailure checks whether the given error is a MiscHardwareFailure error

func IsMiscOMIntervention

func IsMiscOMIntervention(err error) bool

IsMiscOMIntervention checks whether the given error is a MiscOMIntervention error

func IsMiscUnspecified

func IsMiscUnspecified(err error) bool

IsMiscUnspecified checks whether the given error is a MiscUnspecified error

func IsProtocolAbstractSyntaxErrorFalselyConstructedMessage

func IsProtocolAbstractSyntaxErrorFalselyConstructedMessage(err error) bool

IsProtocolAbstractSyntaxErrorFalselyConstructedMessage checks whether the given error is a ProtocolAbstractSyntaxErrorFalselyConstructedMessage error

func IsProtocolAbstractSyntaxErrorIgnoreAndNotify

func IsProtocolAbstractSyntaxErrorIgnoreAndNotify(err error) bool

IsProtocolAbstractSyntaxErrorIgnoreAndNotify checks whether the given error is a ProtocolAbstractSyntaxErrorIgnoreAndNotify error

func IsProtocolAbstractSyntaxErrorReject

func IsProtocolAbstractSyntaxErrorReject(err error) bool

IsProtocolAbstractSyntaxErrorReject checks whether the given error is a ProtocolAbstractSyntaxErrorReject error

func IsProtocolMessageNotCompatibleWithReceiverState

func IsProtocolMessageNotCompatibleWithReceiverState(err error) bool

IsProtocolMessageNotCompatibleWithReceiverState checks whether the given error is a ProtocolMessageNotCompatibleWithReceiverState error

func IsProtocolSemanticError

func IsProtocolSemanticError(err error) bool

IsProtocolSemanticError checks whether the given error is a ProtocolSemanticError error

func IsProtocolTransferSyntaxError

func IsProtocolTransferSyntaxError(err error) bool

IsProtocolTransferSyntaxError checks whether the given error is a ProtocolTransferSyntaxError error

func IsProtocolUnspecified

func IsProtocolUnspecified(err error) bool

IsProtocolUnspecified checks whether the given error is a ProtocolUnspecified error

func IsRICActionNotSupported

func IsRICActionNotSupported(err error) bool

IsRICActionNotSupported checks whether the given error is a RICActionNotSupported error

func IsRICCallProcessIDInvalid

func IsRICCallProcessIDInvalid(err error) bool

IsRICCallProcessIDInvalid checks whether the given error is a RICCallProcessIDInvalid error

func IsRICControlMessageInvalid

func IsRICControlMessageInvalid(err error) bool

IsRICControlMessageInvalid checks whether the given error is a RICControlMessageInvalid error

func IsRICDuplicateAction

func IsRICDuplicateAction(err error) bool

IsRICDuplicateAction checks whether the given error is a RICDuplicateAction error

func IsRICDuplicateEvent

func IsRICDuplicateEvent(err error) bool

IsRICDuplicateEvent checks whether the given error is a RICDuplicateEvent error

func IsRICExcessiveActions

func IsRICExcessiveActions(err error) bool

IsRICExcessiveActions checks whether the given error is a RICExcessiveActions error

func IsRICFunctionResourceLimit

func IsRICFunctionResourceLimit(err error) bool

IsRICFunctionResourceLimit checks whether the given error is a RICFunctionResourceLimit error

func IsRICInconsistentActionSubsequentActionSequence

func IsRICInconsistentActionSubsequentActionSequence(err error) bool

IsRICInconsistentActionSubsequentActionSequence checks whether the given error is a RICInconsistentActionSubsequentActionSequence error

func IsRICRANFunctionIDInvalid

func IsRICRANFunctionIDInvalid(err error) bool

IsRICRANFunctionIDInvalid checks whether the given error is a RICRANFunctionIDInvalid error

func IsRICRequestIDUnknown

func IsRICRequestIDUnknown(err error) bool

IsRICRequestIDUnknown checks whether the given error is a RICRequestIDUnknown error

func IsRICServiceExcessiveFunctions

func IsRICServiceExcessiveFunctions(err error) bool

IsRICServiceExcessiveFunctions checks whether the given error is a RICServiceExcessiveFunctions error

func IsRICServiceFunctionNotRequired

func IsRICServiceFunctionNotRequired(err error) bool

IsRICServiceFunctionNotRequired checks whether the given error is a RICServiceFunctionNotRequired error

func IsRICServiceRICResourceLimit

func IsRICServiceRICResourceLimit(err error) bool

IsRICServiceRICResourceLimit checks whether the given error is a RICServiceRICResourceLimit error

func IsRICServiceUnspecified

func IsRICServiceUnspecified(err error) bool

IsRICServiceUnspecified checks whether the given error is a RICServiceUnspecified error

func IsRICUnspecified

func IsRICUnspecified(err error) bool

IsRICUnspecified checks whether the given error is a RIC Unspecified error

func IsType

func IsType(err error, t E2APType) bool

IsType checks whether the given error is of the given type

func New

func New(t E2APType, msg string, args ...interface{}) error

New creates a new typed error

func NewMiscControlProcessingOverload

func NewMiscControlProcessingOverload(msg string, args ...interface{}) error

NewMiscControlProcessingOverload returns a new MiscControlProcessingOverload error

func NewMiscHardwareFailure

func NewMiscHardwareFailure(msg string, args ...interface{}) error

NewMiscHardwareFailure returns a new MiscHardwareFailure error

func NewMiscOMIntervention

func NewMiscOMIntervention(msg string, args ...interface{}) error

NewMiscOMIntervention returns a new MiscOMIntervention error

func NewMiscUnspecified

func NewMiscUnspecified(msg string, args ...interface{}) error

NewMiscUnspecified returns a new MiscUnspecified error

func NewProtocolAbstractSyntaxErrorFalselyConstructedMessage

func NewProtocolAbstractSyntaxErrorFalselyConstructedMessage(msg string, args ...interface{}) error

NewProtocolAbstractSyntaxErrorFalselyConstructedMessage returns a new ProtocolAbstractSyntaxErrorFalselyConstructedMessage error

func NewProtocolAbstractSyntaxErrorIgnoreAndNotify

func NewProtocolAbstractSyntaxErrorIgnoreAndNotify(msg string, args ...interface{}) error

NewProtocolAbstractSyntaxErrorIgnoreAndNotify returns a new ProtocolAbstractSyntaxErrorIgnoreAndNotify error

func NewProtocolAbstractSyntaxErrorReject

func NewProtocolAbstractSyntaxErrorReject(msg string, args ...interface{}) error

NewProtocolAbstractSyntaxErrorReject returns a new ProtocolAbstractSyntaxErrorReject error

func NewProtocolMessageNotCompatibleWithReceiverState

func NewProtocolMessageNotCompatibleWithReceiverState(msg string, args ...interface{}) error

NewProtocolMessageNotCompatibleWithReceiverState returns a new ProtocolMessageNotCompatibleWithReceiverState error

func NewProtocolSemanticError

func NewProtocolSemanticError(msg string, args ...interface{}) error

NewProtocolSemanticError returns a new ProtocolSemanticError error

func NewProtocolTransferSyntaxError

func NewProtocolTransferSyntaxError(msg string, args ...interface{}) error

NewProtocolTransferSyntaxError returns a new ProtocolTransferSyntaxError error

func NewProtocolUnspecified

func NewProtocolUnspecified(msg string, args ...interface{}) error

NewProtocolUnspecified returns a new ProtocolUnspecified error

func NewRICActionNotSupported

func NewRICActionNotSupported(msg string, args ...interface{}) error

NewRICActionNotSupported returns a new RICActionNotSupported error

func NewRICCallProcessIDInvalid

func NewRICCallProcessIDInvalid(msg string, args ...interface{}) error

NewRICCallProcessIDInvalid returns a new RICCallProcessIDInvalid error

func NewRICControlMessageInvalid

func NewRICControlMessageInvalid(msg string, args ...interface{}) error

NewRICControlMessageInvalid returns a new RICControlMessageInvalid error

func NewRICDuplicateAction

func NewRICDuplicateAction(msg string, args ...interface{}) error

NewRICDuplicateAction returns a new RICDuplicateAction error

func NewRICDuplicateEvent

func NewRICDuplicateEvent(msg string, args ...interface{}) error

NewRICDuplicateEvent returns a new RICDuplicateEvent error

func NewRICExcessiveActions

func NewRICExcessiveActions(msg string, args ...interface{}) error

NewRICExcessiveActions returns a new RICExcessiveActions error

func NewRICFunctionResourceLimit

func NewRICFunctionResourceLimit(msg string, args ...interface{}) error

NewRICFunctionResourceLimit returns a new RICFunctionResourceLimit error

func NewRICInconsistentActionSubsequentActionSequence

func NewRICInconsistentActionSubsequentActionSequence(msg string, args ...interface{}) error

NewRICInconsistentActionSubsequentActionSequence returns a new RICInconsistentActionSubsequentActionSequence error

func NewRICRANFunctionIDInvalid

func NewRICRANFunctionIDInvalid(msg string, args ...interface{}) error

NewRICRANFunctionIDInvalid returns a new RICRANFunctionIDInvalid error

func NewRICRequestIDUnknown

func NewRICRequestIDUnknown(msg string, args ...interface{}) error

NewRICRequestIDUnknown returns a new RICRequestIDUnknown error

func NewRICServiceExcessiveFunctions

func NewRICServiceExcessiveFunctions(msg string, args ...interface{}) error

NewRICServiceExcessiveFunctions returns a new RICServiceExcessiveFunctions error

func NewRICServiceFunctionNotRequired

func NewRICServiceFunctionNotRequired(msg string, args ...interface{}) error

NewRICServiceFunctionNotRequired returns a new RICServiceFunctionNotRequired error

func NewRICServiceRICResourceLimit

func NewRICServiceRICResourceLimit(msg string, args ...interface{}) error

NewRICServiceRICResourceLimit returns a new RICServiceRICResourceLimit error

func NewRICServiceUnspecified

func NewRICServiceUnspecified(msg string, args ...interface{}) error

NewRICServiceUnspecified returns a new RICServiceUnspecified error

func NewRICUnspecified

func NewRICUnspecified(msg string, args ...interface{}) error

NewRICUnspecified returns a new RIC Unspecified error

func NewUnknown

func NewUnknown(msg string, args ...interface{}) error

NewUnknown returns a new Unknown error

Types

type E2APType

type E2APType int

E2APType is an E2AP error type

const (
	Unknown E2APType = iota

	RICUnspecified

	RICRANFunctionIDInvalid

	RICActionNotSupported

	RICExcessiveActions

	RICDuplicateAction

	RICDuplicateEvent

	RICFunctionResourceLimit

	RICRequestIDUnknown

	RICInconsistentActionSubsequentActionSequence

	RICControlMessageInvalid

	RICCallProcessIDInvalid

	RICServiceUnspecified

	RICServiceFunctionNotRequired

	RICServiceExcessiveFunctions

	RICServiceRICResourceLimit

	ProtocolUnspecified

	ProtocolTransferSyntaxError

	ProtocolAbstractSyntaxErrorReject

	ProtocolAbstractSyntaxErrorIgnoreAndNotify

	ProtocolMessageNotCompatibleWithReceiverState

	ProtocolSemanticError

	ProtocolAbstractSyntaxErrorFalselyConstructedMessage

	MiscUnspecified

	MiscControlProcessingOverload

	MiscHardwareFailure

	MiscOMIntervention
)

Error type constants

func TypeOf

func TypeOf(err error) E2APType

TypeOf returns the type of the given error

type TypedError

type TypedError struct {
	// E2APType is the E2AP error type
	E2APType E2APType
	// Message is the error message
	Message string
}

TypedError is a typed error

func (*TypedError) Error

func (e *TypedError) Error() string

Jump to

Keyboard shortcuts

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