github.com/s7techlab/cckit@v0.10.5/state/mapping/errors.go (about)

     1  package mapping
     2  
     3  import "errors"
     4  
     5  var (
     6  	// ErrEntryTypeNotSupported entry type has no appropriate mapper type
     7  	ErrEntryTypeNotSupported = errors.New(`entry type not supported for mapping`)
     8  
     9  	// ErrStateMappingNotFound occurs when mapping for state entry is not defined
    10  	ErrStateMappingNotFound = errors.New(`state mapping not found`)
    11  
    12  	// ErrEventMappingNotFound occurs when mapping for event is not defined
    13  	ErrEventMappingNotFound = errors.New(`event mapping not found`)
    14  
    15  	// ErrFieldTypeNotSupportedForKeyExtraction key cannot extracted from field
    16  	ErrFieldTypeNotSupportedForKeyExtraction = errors.New(`field type not supported for key extraction`)
    17  
    18  	ErrMappingUniqKeyExists = errors.New(`mapping uniq key exists`)
    19  
    20  	ErrFieldNotExists         = errors.New(`field is not exists`)
    21  	ErrPrimaryKeyerNotDefined = errors.New(`primary keyer is not defined`)
    22  
    23  	// ErrIndexAlreadyExists occurs when when trying to add index to mapping with existent name
    24  	ErrIndexAlreadyExists = errors.New(`index already exists`)
    25  
    26  	// ErrIndexReferenceNotFound occurs when trying to find entry by index
    27  	ErrIndexReferenceNotFound = errors.New(`index reference not found`)
    28  )