Documentation ¶
Index ¶
- Variables
- func CreateBadInputParameterError(parameter, value, explanation string) error
- func CreateErrorFileError(filename string, err error) error
- func CreateMissingInputParameterError(parameter string) error
- func CreateSourceConnectionError(url, message string) error
- func ToErrorResult(err error) error
- type BadInputParameterError
- type CreateFileError
- type ErrorCode
- type ErrorResult
- func (*ErrorResult) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorResult) GetErrorCode() ErrorCode
- func (x *ErrorResult) GetErrorMessage() string
- func (*ErrorResult) ProtoMessage()
- func (x *ErrorResult) ProtoReflect() protoreflect.Message
- func (x *ErrorResult) Reset()
- func (x *ErrorResult) String() string
- type MissingInputParameterError
- type SourceConnectionError
Constants ¶
This section is empty.
Variables ¶
var ( ErrorCode_name = map[int32]string{ 0: "NO_ERROR", 1: "UNKNOWN_ERROR", 2: "BAD_INPUT_PARAMETER_ERROR", 3: "MISSING_INPUT_PARAMETER_ERROR", 4: "SOURCE_CONNECTION_ERROR", } ErrorCode_value = map[string]int32{ "NO_ERROR": 0, "UNKNOWN_ERROR": 1, "BAD_INPUT_PARAMETER_ERROR": 2, "MISSING_INPUT_PARAMETER_ERROR": 3, "SOURCE_CONNECTION_ERROR": 4, } )
Enum value maps for ErrorCode.
var File_util_error_error_proto protoreflect.FileDescriptor
Functions ¶
func CreateBadInputParameterError ¶
CreateBadInputParameterError is a helper method to create a consistent error result across plugins when an input parameter has an unexpected format.
func CreateErrorFileError ¶ added in v0.37.0
func CreateMissingInputParameterError ¶
CreateMissingInputParameterError is a helper method to create a consistent error result across plugins when a mandatory parameter is missing.
func CreateSourceConnectionError ¶
CreateSourceConnectionError is a helper method to create a consistent error result across plugins when there is a connection problem to the data source or identity store.
func ToErrorResult ¶
ToErrorResult is a helper method to create an ErrorResult from an error. If the error already is of type ErrorResult, the original is returned.
Types ¶
type BadInputParameterError ¶
type BadInputParameterError struct {
// contains filtered or unexported fields
}
func (*BadInputParameterError) Error ¶ added in v0.37.0
func (e *BadInputParameterError) Error() string
type CreateFileError ¶ added in v0.37.0
type CreateFileError struct {
// contains filtered or unexported fields
}
func (*CreateFileError) Error ¶ added in v0.37.0
func (e *CreateFileError) Error() string
func (*CreateFileError) Unwrap ¶ added in v0.37.0
func (e *CreateFileError) Unwrap() error
type ErrorCode ¶
type ErrorCode int32
func (ErrorCode) Descriptor ¶ added in v0.32.0
func (ErrorCode) Descriptor() protoreflect.EnumDescriptor
func (ErrorCode) EnumDescriptor
deprecated
added in
v0.32.0
func (ErrorCode) Number ¶ added in v0.32.0
func (x ErrorCode) Number() protoreflect.EnumNumber
func (ErrorCode) Type ¶ added in v0.32.0
func (ErrorCode) Type() protoreflect.EnumType
type ErrorResult ¶
type ErrorResult struct { ErrorMessage string `protobuf:"bytes,1,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` ErrorCode ErrorCode `protobuf:"varint,2,opt,name=error_code,json=errorCode,proto3,enum=util.error.ErrorCode" json:"error_code,omitempty"` // contains filtered or unexported fields }
func (*ErrorResult) Descriptor
deprecated
added in
v0.32.0
func (*ErrorResult) Descriptor() ([]byte, []int)
Deprecated: Use ErrorResult.ProtoReflect.Descriptor instead.
func (*ErrorResult) GetErrorCode ¶ added in v0.32.0
func (x *ErrorResult) GetErrorCode() ErrorCode
func (*ErrorResult) GetErrorMessage ¶ added in v0.32.0
func (x *ErrorResult) GetErrorMessage() string
func (*ErrorResult) ProtoMessage ¶ added in v0.32.0
func (*ErrorResult) ProtoMessage()
func (*ErrorResult) ProtoReflect ¶ added in v0.32.0
func (x *ErrorResult) ProtoReflect() protoreflect.Message
func (*ErrorResult) Reset ¶ added in v0.32.0
func (x *ErrorResult) Reset()
func (*ErrorResult) String ¶ added in v0.32.0
func (x *ErrorResult) String() string
type MissingInputParameterError ¶
type MissingInputParameterError struct {
// contains filtered or unexported fields
}
func (*MissingInputParameterError) Error ¶ added in v0.37.0
func (e *MissingInputParameterError) Error() string
type SourceConnectionError ¶
type SourceConnectionError struct {
// contains filtered or unexported fields
}
func (*SourceConnectionError) Error ¶ added in v0.37.0
func (e *SourceConnectionError) Error() string