errors

package
v0.0.0-...-50def94 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 0 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CError

type CError interface {
	Error() string
}

type CState

type CState struct {
	Private interface{}
}

CState represents the error state

type State

type State struct {
	Private interface{}
}

State represents the error state

type YClientError

type YClientError struct {
	Msg string
}

YClientError is the error for client.

func (*YClientError) Error

func (e *YClientError) Error() string

Error satisfies the error interface Returns the error message (string)

type YCodecError

type YCodecError struct {
	Msg string
}

YCodecError encapsualtes the validation errors for codec service.

func (*YCodecError) Error

func (e *YCodecError) Error() string

Error satisfies the error interface Returns the error message (string)

type YCoreError

type YCoreError struct {
	Msg string
}

YModelError is the error for core.

func (*YCoreError) Error

func (e *YCoreError) Error() string

Error satisfies the error interface Returns the error message (string)

type YError

type YError struct {
	Msg string
}

YError is the basic error type in Go

func (*YError) Error

func (e *YError) Error() string

Error satisfies the error interface Returns the error message (string)

type YIllegalStateError

type YIllegalStateError struct {
	Msg string
}

YIllegalStateError is raised when an operation/service is invoked on an object that is not in the right state.

func (*YIllegalStateError) Error

func (e *YIllegalStateError) Error() string

Error satisfies the error interface Returns the error message (string)

type YInvalidArgumentError

type YInvalidArgumentError struct {
	Msg string
}

YInvalidArgumentError is raised when there is an invalid argument.

func (*YInvalidArgumentError) Error

func (e *YInvalidArgumentError) Error() string

Error satisfies the error interface Returns the error message (string)

type YModelError

type YModelError struct {
	Msg string
}

YModelError is raised when a model constraint is violated.

func (*YModelError) Error

func (e *YModelError) Error() string

Error satisfies the error interface Returns the error message (string)

type YOperationNotSupportedError

type YOperationNotSupportedError struct {
	Msg string
}

YOperationNotSupportedError is raised for an unsupported operation.

func (*YOperationNotSupportedError) Error

Error satisfies the error interface Returns the error message (string)

type YServiceError

type YServiceError struct {
	Msg string
}

YServiceError is the error for service.

func (*YServiceError) Error

func (e *YServiceError) Error() string

Error satisfies the error interface Returns the error message (string)

type YServiceProviderError

type YServiceProviderError struct {
	Msg string
}

YServiceProviderError is the error for service provider.

func (*YServiceProviderError) Error

func (e *YServiceProviderError) Error() string

Error satisfies the error interface Returns the error message (string)

type Y_ERROR_TYPE

type Y_ERROR_TYPE int

Represents YDK Go error types

const (
	Y_ERROR_TYPE_NONE Y_ERROR_TYPE = iota
	Y_ERROR_TYPE_ERROR
	Y_ERROR_TYPE_CLIENT_ERROR
	Y_ERROR_TYPE_SERVICE_PROVIDER_ERROR
	Y_ERROR_TYPE_SERVICE_ERROR
	Y_ERROR_TYPE_ILLEGAL_STATE_ERROR
	Y_ERROR_TYPE_INVALID_ARGUMENT_ERROR
	Y_ERROR_TYPE_OPERATION_NOTSUPPORTED_ERROR
	Y_ERROR_TYPE_MODEL_ERROR
)

Jump to

Keyboard shortcuts

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