Documentation ¶
Overview ¶
Package errs defines error details
Index ¶
- Variables
- func IsIndexNotFound(err error) bool
- func IsIndexTemplateNotFound(err error) bool
- func IsInvalidResourceNameError(err error) bool
- func IsShardNotFound(err error) bool
- type IndexNotFoundError
- type IndexTemplateNotFoundError
- type InvalidAggFieldTypeError
- type InvalidBulkError
- type InvalidFieldError
- type InvalidFieldValError
- type InvalidQueryError
- type InvalidRangeError
- type InvalidResourceNameError
- type NoSegmentError
- type NoShardError
- type QueryLoadExceedError
- type SegmentNotFoundError
- type ShardNotFoundError
- type UnsupportedError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidJSONType = errors.New( "invalid JSON type, possible values are [string, long, double, boolean, date]", ) ErrNoMappingInDynamicTemplate = errors.New("dynamic template must have a mapping") ErrEmptySettings = errors.New("empty settings") ErrEmptyMappings = errors.New("empty mappings") ErrNoSegmentMatched = errors.New("no segment matched") ErrIndexLibNotSupport = errors.New("index lib not support") ErrSpecifyDirAsFile = errors.New("specify directory as file") ErrSegmentReadonly = errors.New("segment is readonly") ErrEmptyField = errors.New( "invalid field specified, must be non-null and non-empty", ) )
Functions ¶
func IsIndexNotFound ¶
func IsIndexTemplateNotFound ¶
func IsShardNotFound ¶
Types ¶
type IndexNotFoundError ¶
type IndexNotFoundError struct {
Index string `json:"index"`
}
func IndexNotFound ¶
func IndexNotFound(err error) (bool, *IndexNotFoundError)
func (*IndexNotFoundError) Error ¶
func (e *IndexNotFoundError) Error() string
type IndexTemplateNotFoundError ¶
type IndexTemplateNotFoundError struct {
IndexTemplate string `json:"index_template"`
}
func IndexTemplateNotFound ¶
func IndexTemplateNotFound(err error) (bool, *IndexTemplateNotFoundError)
func (*IndexTemplateNotFoundError) Error ¶
func (e *IndexTemplateNotFoundError) Error() string
type InvalidAggFieldTypeError ¶
type InvalidAggFieldTypeError struct { Field string `json:"field"` FieldType string `json:"type"` AggregationType string `json:"aggregation_type"` AggregationName string `json:"aggregation_name"` }
func (*InvalidAggFieldTypeError) Error ¶
func (e *InvalidAggFieldTypeError) Error() string
type InvalidBulkError ¶
type InvalidBulkError struct {
Message string `json:"message"`
}
func (*InvalidBulkError) Error ¶
func (e *InvalidBulkError) Error() string
type InvalidFieldError ¶
func (*InvalidFieldError) Error ¶
func (e *InvalidFieldError) Error() string
type InvalidFieldValError ¶
type InvalidFieldValError struct { Field string `json:"field"` Type string `json:"type"` Value any `json:"value"` }
func (*InvalidFieldValError) Error ¶
func (e *InvalidFieldValError) Error() string
type InvalidQueryError ¶
func (*InvalidQueryError) Error ¶
func (e *InvalidQueryError) Error() string
type InvalidRangeError ¶
type InvalidRangeError struct { Desc string `json:"desc"` Value any `json:"value"` Left any `json:"left"` LeftExclude bool `json:"left_exclude"` Right any `json:"right"` RightExclude bool `json:"right_exclude"` }
func (*InvalidRangeError) Error ¶
func (e *InvalidRangeError) Error() string
type InvalidResourceNameError ¶
func (*InvalidResourceNameError) Error ¶
func (e *InvalidResourceNameError) Error() string
type NoSegmentError ¶
func (*NoSegmentError) Error ¶
func (e *NoSegmentError) Error() string
type NoShardError ¶
type NoShardError struct {
Index string `json:"index"`
}
func (*NoShardError) Error ¶
func (e *NoShardError) Error() string
type QueryLoadExceedError ¶
type QueryLoadExceedError struct { Indexes []string `json:"indexes"` Message string `json:"message"` Query any `json:"query"` }
func (*QueryLoadExceedError) Error ¶
func (e *QueryLoadExceedError) Error() string
type SegmentNotFoundError ¶
type SegmentNotFoundError struct { Index string `json:"index"` Shard int `json:"shard"` Segment int `json:"segment"` }
func (*SegmentNotFoundError) Error ¶
func (e *SegmentNotFoundError) Error() string
type ShardNotFoundError ¶
func (*ShardNotFoundError) Error ¶
func (e *ShardNotFoundError) Error() string
type UnsupportedError ¶
func (*UnsupportedError) Error ¶
func (e *UnsupportedError) Error() string
Click to show internal directories.
Click to hide internal directories.