Documentation
¶
Overview ¶
Package class contains `github.com/neuronlabs/errors` classes instances used in neuron-core. The classes are divided into following Majors:
- Common - Config - Encoding - Internal - internal neuron-core errors - Language - Model - model mapping issues - Query - Repository - errors used by the repository instances
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // MnrCommonParse is the 'MjrCommon' minor error classification // for parsing common strings. MnrCommonParse errors.Minor // CommonParseBrackets is the 'MjrCommon', 'MnrCommonParse' error classification // for parsing bracketed strings. CommonParseBrackets errors.Class // MnrCommonLogger is the 'MjrCommon' minor error classification // for logger issues. MnrCommonLogger errors.Minor // CommonLoggerNotImplement is the 'MjrCommon', 'MnrCommonLogger' error classification // for logger's that doesn't implement some interface. CommonLoggerNotImplement errors.Class // CommonLoggerUnknownLevel is the 'MjrCommon', 'MnrCommonLogger' error classification // for unknown level logger. CommonLoggerUnknownLevel errors.Class )
var ( // MnrConfigRead is the 'MjrConfig' minor error classification // for the config read issues. MnrConfigRead errors.Minor // ConfigReadNotFound is the 'MjrConfig', 'MnrConfigRead' error classification // for the read config not found issue. ConfigReadNotFound errors.Class )
var ( // MnrConfigValue is the 'MjrConfig' minor error classification // for the config value issues. MnrConfigValue errors.Minor // ConfigValueGateway is the 'MjrConfig', 'MnrConfigValue' error classification // for the issues with the value of gateway. ConfigValueGateway errors.Class // ConfigValueProcessor is the 'MjrConfig', 'MnrConfigValue' error classification // for the issues with the value of processor. ConfigValueProcessor errors.Class // ConfigValueFlag is the 'MjrConfig', 'MnrConfigValue' error classification // for the issues with the value of flag. ConfigValueFlag errors.Class // ConfigValueNil is the 'MjrConfig', 'MnrConfigValue' error classification // for the issues related to the nil config value. ConfigValueNil errors.Class // ConfigValueInvalid is the 'MjrConfig', 'MnrConfigValue' error classification // for config validation failures. ConfigValueInvalid errors.Class )
var ( // MnrEncodingMarshal is the minor error classification for the 'MjrEncoding' major. // It is related with the encoding marshal errors. MnrEncodingMarshal errors.Minor // EncodingMarshalOutputValue is the 'MjrEncoding', 'MnrEncodingMarshal' error classification // when the setting the output value. EncodingMarshalOutputValue errors.Class // EncodingMarshalModelNotMapped is the 'MjrEncoding', 'MnrEncodingMarshal' error classification // when marshaling unmapped model. EncodingMarshalModelNotMapped errors.Class // EncodingMarshalNilValue is the 'MjrEncoding', 'MnrEncodingMarshal' error classification // when the provided marshaling value is nil. EncodingMarshalNilValue errors.Class // EncodingMarshalNonAddressable is the 'MjrEncoding', 'MnrEncodingMarshal' error classification // when the provided marshaling value is not addressable. EncodingMarshalNonAddressable errors.Class // EncodingMarshalInput is the 'MjrEncoding', 'MnrEncodingMarshal' error classification // when the provided marshaling value is invalid. I.e. provided value is not a model structure. EncodingMarshalInput errors.Class )
*
Encoding Marshal
var ( // MnrEncodingUnmarshal is the 'MjrEncoding' minor classification // for the unmarshall process. MnrEncodingUnmarshal errors.Minor // EncodingUnmarshal is a 'MjrEncoding', 'MnrEncodingUnmarshal' error classification // for general purpose unmarshal errors. EncodingUnmarshal errors.Class // EncodingUnmarshalCollection is a 'MjrEncoding', 'MnrEncodingUnmarshal' error classification // when unmarshaling the input data that has undefined model collection. EncodingUnmarshalCollection errors.Class // EncodingUnmarshalFieldValue is a 'MjrEncoding', 'MnrEncodingUnmarshal' error classification // When unmarshaling field with invalid value. EncodingUnmarshalFieldValue errors.Class // EncodingUnmarshalInvalidFormat is a 'MjrEncoding', 'MnrEncodingUnmarshal' error classification // while unmarshaling the input data has invalid format. I.e. invalid json formatting. EncodingUnmarshalInvalidFormat errors.Class // EncodingUnmarshalInvalidID is a 'MjrEncoding', 'MnrEncodingUnmarshal' error classification // while unmarshaling the document with invalid primary field format or value. EncodingUnmarshalInvalidID errors.Class // EncodingUnmarshalInvalidOutput is a 'MjrEncoding', 'MnrEncodingUnmarshal' error classification // while unmarshaling the document with invalid output model or slice. EncodingUnmarshalInvalidOutput errors.Class // EncodingUnmarshalInvalidTime is a 'MjrEncoding', 'MnrEncodingUnmarshal' error classification // when unmarshaling time defined field with invalid type or value. EncodingUnmarshalInvalidTime errors.Class // EncodingUnmarshalInvalidType is a 'MjrEncoding', 'MnrEncodingUnmarshal' error classification // while unmarshaling field with invalid value type. EncodingUnmarshalInvalidType errors.Class // EncodingUnmarshalNoData is a 'MjrEncoding', 'MnrEncodingUnmarshal' error classification // while unmarshaling the empty data, when it is not allowed. EncodingUnmarshalNoData errors.Class // EncodingUnmarshalUnknownField is a 'MjrEncoding', 'MnrEncodingUnmarshal' error classification // when trying to unmarshal undefined or unknown field. Used when 'strict' mode is set. EncodingUnmarshalUnknownField errors.Class // EncodingUnmarshalValueOutOfRange is a 'MjrEncoding', 'MnrEncodingUnmarshal' error classification // when trying to unmarshal value with some range that exceeds defined maximum. EncodingUnmarshalValueOutOfRange errors.Class )
var ( // MnrInternalQuery is the 'MjrInternal' minor classification for the internal // query errors. MnrInternalQuery errors.Minor // InternalQueryNoStoredValue is the 'MjrInternal', 'MnrInternalQuery' error classification // for queries with no or invalid internal context values. InternalQueryNoStoredValue errors.Class // InternalQueryIncluded is the 'MjrInternal', 'MnrInternalQuery' error classification // for the internal included fields issues. InternalQueryIncluded errors.Class // InternalQueryInvalidField is the 'MjrInternal', 'MnrInternalQuery' error classification // for queries with invalid fields. InternalQueryInvalidField errors.Class // InternalQueryNoSuchModel is the 'MjrInternal', 'MnrInternalQuery' error classification // when the model is not found for internal query operations. InternalQueryNoSuchModel errors.Class // InternalQueryNilValue is the 'MjrInternal', 'MnrInternalQuery' error classification // when the internal query operations contains nil value. InternalQueryNilValue errors.Class // InternalQueryInvalidValue is the 'MjrInternal', 'MnrInternalQuery' error classification // when the internal query operations contains invalid query value. InternalQueryInvalidValue errors.Class // InternalQuerySort is the 'MjrInternal', 'MnrInternalQuery' error classification // for invalid query sort fields. InternalQuerySort errors.Class // InternalQueryFilter is the 'MjrInternal', 'MnrInternalQuery' error classification // for invalid internal query filter errors. InternalQueryFilter errors.Class // InternalQuerySelectedField is the 'MjrInternal', 'MnrInternalQuery' error classification // for internal errors related with query selected fields. InternalQuerySelectedField errors.Class // InternalQueryModelMismatch is the 'MjrInternal', 'MnrInternalQuery' error classification // for internal errors related with model type mismatch within internal methods. InternalQueryModelMismatch errors.Class // InternalQueryValidation is the 'MjrInternal', 'MnrInternalQuery' error classification // for internal errors related with query validator. InternalQueryValidation errors.Class // InternalQueryCardinality is the 'MjrQuery', 'MnrQueryViolation' error classifcation // when the provided query violates the query cardinality. InternalQueryCardinality errors.Class // i.e. SELECT * FROM collection WHERE id IN (SELECT too,many,fields FROM other) )
*
Internal Query
var ( // MnrInternalEncoding is the 'MjrInternal' minor error classification // for internal encoding errors. MnrInternalEncoding errors.Minor // InternalEncodingModelFieldType is the 'MjrInternal' 'MnrInternalEncoding' error classification // for internal encoding errors when the model field type is invalid. InternalEncodingModelFieldType errors.Class // InternalEncodingValue is the 'MjrInternal' 'MnrInternalEncoding' error classification // for internal encoding errors with invalid value type. InternalEncodingValue errors.Class // InternalEncodingPayload is the 'MjrInternal' 'MnrInternalEncoding' error classification // for internal encoding errors with some payload errors. InternalEncodingPayload errors.Class // InternalEncodingIncludeScope is the 'MjrInternal' 'MnrInternalEncoding' error classification // for internal encoding errors with included scopes. InternalEncodingIncludeScope errors.Class // InternalEncodingUnsupportedID is the 'MjrInternal' 'MnrInternalEncoding' error classification // for internal encoding errors with invalid primary field type or value. InternalEncodingUnsupportedID errors.Class )
var ( // MnrInternalModel is the 'MjrInternal' minor error classifcation // for internal model issues. MnrInternalModel errors.Minor // InternalModelRelationNotMapped is the 'MjrInternal', 'MnrInternalModel' error classification // for internal not mapped model relationships issues. InternalModelRelationNotMapped errors.Class // InternalModelNotCast is the 'MjrInternal', 'MnrInternalModel' error classification // for the internal model's that should cast to some interface. InternalModelNotCast errors.Class // InternalModelFlag is the 'MjrInternal', 'MnrInternalModel' error classification // for the internal model flag errors. InternalModelFlag errors.Class )
*
Internal Model
var ( // MnrInternalRepository is the 'MjrInternal' minor error classification // for the repository related internal issues. MnrInternalRepository errors.Minor // InternalRepository is the 'MjrInternal', 'MnrInternalRepository' error classification // for internal repositories errors. InternalRepository errors.Class // InternalRepositoryResourceName is the 'MjrInternal', 'MnrInternalRepository' error classification // for the errors related with the internal repository invalid resource name. InternalRepositoryResourceName errors.Class // InternalRepositorySyntax is the 'MjrInternal', 'MnrInternalRepository' error classification // for the errors related with the internal repository syntax. InternalRepositorySyntax errors.Class // InternalRepositorySystemError is the 'MjrInternal', 'MnrInternalRepository' error classification // while repository system error occurred: i.e. not enough disk space. InternalRepositorySystemError errors.Class // InternalRepositoryClientMismatch is the 'MjrInternal', 'MnrInternalRepository' error classification // for internal errors on matching the repository clients. InternalRepositoryClientMismatch errors.Class // InternalRepositoryIndex is the 'MjrInternal', 'MnrInternalRepository' error classification // for internal errors with index. InternalRepositoryIndex errors.Class // InternalRepositoryOptions is the 'MjrInternal', 'MnrInternalRepository' error classification // for internal repository options errors. InternalRepositoryOptions errors.Class )
*
Internal Repository
var ( // MnrInternalCommon is the common 'MjrInternal' minor error classification // for the non classified internal errors. MnrInternalCommon errors.Minor // InternalCommon is the 'MjrInternal', 'MinorInternalCommon' error classification // for non classified internal errors. InternalCommon errors.Class )
var ( // MnrInternalInit is the common 'MnrInternalInit' error classification for // initialization errors. MnrInternalInit errors.Minor // InternalInitController error class for controller initialization errors. InternalInitController errors.Class )
var ( // MnrLanguageUnsupported is the 'MjrLanguage' minor error classification // for unsupported languages. MnrLanguageUnsupported errors.Minor // LanguageUnsupportedTag is the 'MjrLanguage', 'MnrLanguageUnsupported' error // classification for unsupported language tags. LanguageUnsupportedTag errors.Class // MnrLanguageParsing is the 'MjrLanguage' minor error classification for // parsing the languages issues. MnrLanguageParsing errors.Minor // LanguageParsingFailed is the error classification when parsing language failed. LanguageParsingFailed errors.Class )
var ( // MnrModelField is the 'MjrModel' minor error classification // on the model field's definitions. MnrModelField errors.Minor // ModelFieldForeignKeyNotFound is the 'MjrModel', 'MnrModelField' error classification // when the model field's foreign key is not found issue. ModelFieldForeignKeyNotFound errors.Class // ModelFieldName is the 'MjrModel', 'MnrModelField' error classification // on the model field's name issue. ModelFieldName errors.Class // ModelFieldNestedType is the 'MjrModel', 'MnrModelField' error classification // on the model field's nested field type issue. ModelFieldNestedType errors.Class // ModelFieldNotFound is the 'MjrModel', 'MnrModelField' error classification // when the model field is not found issue. ModelFieldNotFound errors.Class // ModelFieldTag is the 'MjrModel', 'MnrModelField' error classification // on the model field's tag issue. ModelFieldTag errors.Class // ModelFieldType is the 'MjrModel', 'MnrModelField' error classification // on the model field's type issue. ModelFieldType errors.Class )
*
Model Field
var ( // MnrModelSchema is the 'MjrModel' minor error classification // on the model's schema issues. MnrModelSchema errors.Minor // ModelInSchemaAlreadyRegistered is the 'MjrModel', 'MnrModelSchema' error classifcation // when the model is already registered within given schema. ModelInSchemaAlreadyRegistered errors.Class // ModelSchemaNotFound is the 'MjrModel', 'MnrModelSchema' error classification // used when the model schema is not found. ModelSchemaNotFound errors.Class // ModelNotMapped is the 'MjrModel', 'MnrModelSchema' error classification // used when the model is not mapped within schema. ModelNotMappedInSchema errors.Class )
*
Model Schema
var ( // MnrModelRelationship is the 'MjrModel' minor error classification // on the issues with model relationships. MnrModelRelationship errors.Minor // ModelRelationshipType is the 'MjrModel', 'MnrModelRelationship' error classification // on the issues with relationship's type. ModelRelationshipType errors.Class // ModelRelationshipForeign is the 'MjrModel', 'MnrModelRelationship' error classification // on the issues with relationship's invalid foreign key. ModelRelationshipForeign errors.Class // ModelRelationshipJoinModel is the 'MjrModel', 'MnrModelRelationship' error classification // on the issues with relationship's join model. ModelRelationshipJoinModel errors.Class // ModelRelationshipBackreference is the 'MjrModel', 'MnrModelRelationship' error classification // on the issues with relationship's back reference field. ModelRelationshipBackreference errors.Class // ModelRelationshipOptions is the 'MjrModel', 'MnrModelRelationship' error classification // on the issues with relationship options like: 'on error', 'on patch', 'on delete'. ModelRelationshipOptions errors.Class )
*
Model Relationship
var ( // MnrModelValue is the 'MjrModel' minor error classification used for model value issues. MnrModelValue errors.Minor // ModelValueNil is the 'MjrModel', 'MnrModelValue' error classification // for nil model values - while getting the model struct. ModelValueNil errors.Class )
var ( // MnrModelMapping is the 'MjrModel' minor error classification for model mapping issues. MnrModelMapping errors.Minor // ModelMappingNoFields is the 'MjrModel', 'MnrModelMapping' error classification // for model without required field or no fields at all. ModelMappingNoFields errors.Class // ModelMappingInvalidType is the 'MjrModel', 'MnrModelMapping' error classification // for invalid types (i.e. field). ModelMappingInvalidType errors.Class // ModelNotMapped is the 'MjrModel', 'MnrModelSchema' error classification // used when the model is not mapped within schema. ModelNotMapped errors.Class )
var ( // MnrQueryFieldset is the 'MjrQuery' minor error classification // for query fieldset related issues. MnrQueryFieldset errors.Minor // QueryFieldsetTooBig is the 'MjrQuery', 'MnrQueryFieldset' error classification // used when provided more than possible fields in the fieldset. QueryFieldsetTooBig errors.Class // QueryFieldsetUnknownField is the 'MjrQuery', 'MnrQueryFieldset' error classificatio // used when the provided fieldset field is not found within the model's collection. QueryFieldsetUnknownField errors.Class // QueryFieldsetDuplicate is the 'MjrQuery', 'MnrQueryFieldset' error classificatio // for duplicated fieldset field's name. QueryFieldsetDuplicate errors.Class // QueryFieldsetInvalid is the 'MjrQuery', 'MnrQueryFieldset' error classification // for invalid fieldset issues. QueryFieldsetInvalid errors.Class // QueryFieldsetEmpty is the 'MjrQuery', 'MnrQueryFieldset' error classification // for empty fieldset issues. QueryFieldsetEmpty errors.Class )
var ( // MnrQuerySelectedFields is the 'MjrQuery' minor error classifcation // for the selected fields issues. MnrQuerySelectedFields errors.Minor // QuerySelectedFieldsNotFound is the 'MjrQuery', 'MnrQuerySelectedFields' error classifcation // when the selected fields is not found. QuerySelectedFieldsNotFound errors.Class // QuerySelectedFieldsNotSelected is the 'MjrQuery', 'MnrQuerySelectedFields' error classifcation // when unselecting fields which were not selected. QuerySelectedFieldsNotSelected errors.Class // QuerySelectedFieldsInvalidModel is the 'MjrQuery', 'MnrQuerySelectedFields' error classification // when provided selected field is of invalid or non matched model. QuerySelectedFieldsInvalidModel errors.Class // QuerySelectedFieldInvalid is the 'MjrQuery', 'MnrQuerySelectedFields' error classification // when the selected field is not valid. QuerySelectedFieldInvalid errors.Class // QuerySelectedFieldAlreadyUsed is the 'MjrQuery', 'MnrQuerySelectedFields' error classification // whenthe selected field is already 'selected'. QuerySelectedFieldAlreadyUsed errors.Class )
var ( // MnrQueryFilter is the 'MjrQuery' minor that classifies errors related with the query filters. MnrQueryFilter errors.Minor // QueryFilterInvalidField is the 'MjrQuery', 'MnrQueryFilter' error classification // for invalid query filters field - name. QueryFilterInvalidField errors.Class // QueryFilterInvalidFormat is the 'MjrQuery', 'MnrQueryFilter' error classification // for invalid query filter format. QueryFilterInvalidFormat errors.Class // QueryFilterLanguage is the 'MjrQuery', 'MnrQueryFilter' error classification // for invalid query language filter. . QueryFilterLanguage errors.Class // QueryFilterMissingRequired is the 'MjrQuery', 'MnrQueryFilter' error classification // for missing query filters. QueryFilterMissingRequired errors.Class // QueryFilterUnknownCollection is the 'MjrQuery', 'MnrQueryFilter' error classification // for unknown query filter collection provided. QueryFilterUnknownCollection errors.Class // QueryFilterUnknownField is the 'MjrQuery', 'MnrQueryFilter' error classification // for unknown query filter field. QueryFilterUnknownField errors.Class // QueryFilterUnknownOperator is the 'MjrQuery', 'MnrQueryFilter' error classification // for unknown - invalid filter operator. QueryFilterUnknownOperator errors.Class // QueryFilterUnsupportedField is the 'MjrQuery', 'MnrQueryFilter' error classification // for unsupported field types. QueryFilterUnsupportedField errors.Class // QueryFilterUnsupportedOperator is the 'MjrQuery', 'MnrQueryFilter' error classification // for unsupported query filter operator. QueryFilterUnsupportedOperator errors.Class // QueryFilterValue is the 'MjrQuery', 'MnrQueryFilter' error classification // for invalid filter values. QueryFilterValue errors.Class // QueryFitlerNonMatched is the 'MjrQuery', 'MnrQueryFilter' error classification // for non matched model structures or field structures to models. QueryFitlerNonMatched errors.Class // QueryFilterFieldKind is the 'MjrQuery', 'MnrQueryFilter' error classification // for invalid, unknown or unsupported filter field kind. QueryFilterFieldKind errors.Class )
var ( // MnrQuerySorts is the 'MjrQuery' minor that classifies errors related with the sorts. MnrQuerySorts errors.Minor // QuerySortField is the 'MjrQuery', 'MnrQuerySorts' error classification // for unknown, unsupported fields. QuerySortField errors.Class // QuerySortFormat is the 'MjrQuery', 'MnrQuerySorts' error classification // for invalid sorting format. QuerySortFormat errors.Class // QuerySortTooManyFields is the 'MjrQuery', 'MnrQuerySorts' error classification // when too many sorting fields provided. QuerySortTooManyFields errors.Class // QuerySortRelatedFields is the 'MjrQuery', 'MnrQuerySorts' error classification // for unsupported sorting by related fields. QuerySortRelatedFields errors.Class )
var ( // MnrQueryPagination is the 'MjrQuery' minor that classifies errors related with the pagination. MnrQueryPagination errors.Minor // QueryPaginationValue is the 'MjrQuery', 'MnrQueryPagination' error classification // for invalid pagination values. I.e. invalid limit, offset value. QueryPaginationValue errors.Class // QueryPaginationType is the 'MjrQuery', 'MnrQueryPagination' error classification // for invalid pagination type provided. QueryPaginationType errors.Class // QueryPaginationAlreadySet is the 'MjrQuery', 'MnrQueryPagination' error classification // while trying to add pagination when it is already set. QueryPaginationAlreadySet errors.Class )
var ( // MnrQueryValue is the 'MjrQuery' minor that classifies errors related with the query values. MnrQueryValue errors.Minor // QueryNoValue is the 'MjrQuery', 'MnrQueryValue' error classification // for queries with no values provided. QueryNoValue errors.Class // QueryValueMissingRequired is the 'MjrQuery', 'MnrQueryValue' error classifcation // occurred on missing required field values. QueryValueMissingRequired errors.Class // QueryValueNoResult is the 'MjrQuery', 'MnrQueryValue' error classifaction // when query returns no results. QueryValueNoResult errors.Class // QueryValuePrimary is the 'MjrQuery', 'MnrQueryValue' error classification // for queries with invalid primary field value. QueryValuePrimary errors.Class // QueryValueType is the 'MjrQuery', 'MnrQueryValue' error classification // for queries with invalid or unsupported value type provided. QueryValueType errors.Class // QueryValueUnaddressable is the 'MjrQuery', 'MnrQueryValue' error classifcation // for queries with unadresable value type provided. QueryValueUnaddressable errors.Class // QueryValueValidation is the 'MjrQuery', 'MnrQueryValue' error classifaction // for queries with non validated values - validator failed. QueryValueValidation errors.Class )
var ( // MnrQueryInclude is the 'MjrQuery' minor error classifcation // for the query includes issues. MnrQueryInclude errors.Minor // QueryIncludeTooMany is the 'MjrQuery', 'MnrQueryInclude' error classifcation // used on when provided too many includes or too deep included field. QueryIncludeTooMany errors.Class // QueryNotIncluded is the 'MjrQuery', 'MnrQueryInclude' error classification // used when the provided query collection / model is not included. QueryNotIncluded errors.Class )
var ( // MnrQueryTransaction is the 'MjrQuery' minor error classification that defines issues with the query transactions. MnrQueryTransaction errors.Minor // QueryTxBegin is the 'MjrQuery', 'MnrQueryTransaction' error classifaction // for query tranasaction begins. QueryTxBegin errors.Class // QueryTxAlreadyBegin is the 'MjrQuery', 'MnrQueryTransaction' error classifaction // when query transaction had already begin. QueryTxAlreadyBegin errors.Class // QueryTxAlreadyResolved is the 'MjrQuery', 'MnrQueryTransaction' error classifaction // when query transaction had already resolved. QueryTxAlreadyResolved errors.Class // QueryTxNotFound is the 'MjrQuery', 'MnrQueryTransaction' error classifaction // when query transaction transaction not found for given query. QueryTxNotFound errors.Class // QueryTxRollback is the 'MjrQuery', 'MnrQueryTransaction' error classifaction // when query transaction with rollback issues. QueryTxRollback errors.Class // QueryTxFailed is the 'MjrQuery', 'MnrQueryTransaction' error classifaction // when query transaction failed. QueryTxFailed errors.Class // QueryTxUnknownState is the 'MjrQuery', 'MnrQueryTransaction' error classifaction // when query transaction state is unknown. QueryTxUnknownState errors.Class // QueryTxUnknownIsolationLevel is the 'MjrQuery', 'MnrQueryTransaction' error classifaction // when query transaction isolation level is unknown. QueryTxUnknownIsolationLevel errors.Class // QueryTxTermination is the 'MjrQuery', 'MnrQueryTransaction' error classifaction // when query transaction is incorrectly terminated. QueryTxTermination errors.Class // QueryTxLockTimeOut is the 'MjrQuery', 'MnrQueryTransaction' error classification // when query transaction lock had timed out. QueryTxLockTimeOut errors.Class // QueryTxDone is the Query Transaction error classification that states the transaction is finished. QueryTxDone errors.Class )
var ( // MnrQueryViolation is the 'MjrQuery' minor error classifaction // related with query violations. MnrQueryViolation errors.Minor // QueryViolationIntegrityConstraint is the 'MjrQuery', 'MnrQueryViolation' error classifcation // when the query violates integrity constraint in example no foreign key exists for given insertion query. QueryViolationIntegrityConstraint errors.Class // QueryViolationNotNull is the 'MjrQuery', 'MnrQueryViolation' error classifcation // when the not null restriction is violated by the given insertion, patching query. QueryViolationNotNull errors.Class // QueryViolationForeignKey is the 'MjrQuery', 'MnrQueryViolation' error classifcation // when the foreign key is being violated. QueryViolationForeignKey errors.Class // QueryViolationUnique is the 'MjrQuery', 'MnrQueryViolation' error classifcation // when the uniqueness of the field is being violated. I.e. user defined primary key is not unique. QueryViolationUnique errors.Class // QueryViolationCheck is the 'MjrQuery', 'MnrQueryViolation' error classifcation // when the repository value check is violated. I.e. SQL Check value. QueryViolationCheck errors.Class // QueryViolationDataType is the 'MjrQuery', 'MnrQueryViolation' error classifcation // when the inserted data type violates the allowed data types. QueryViolationDataType errors.Class // QueryViolationRestrict is the 'MjrQuery', 'MnrQueryViolation' error classifcation // while doing restricted operation. I.e. SQL based repository with field marked as RESTRICT. QueryViolationRestrict errors.Class )
var ( // MnrQueryProcessor is the 'MjrQuery' error classification related with // the issues with the processes and a processor. MnrQueryProcessor errors.Minor // QueryProcessorNotFound is the 'MjrQuery', 'MnrQueryProcessor' error classification // for the query processes not found. QueryProcessorNotFound errors.Class )
var ( // MnrQueryRelation is the 'MjrQuery' minor error classification related // with the issues while querying the relations. MnrQueryRelation errors.Minor // QueryRelation is the 'MjrQuery', 'MnrQueryRelation' error classification // for general issues while querying the relations. QueryRelation errors.Class // QueryRelationNotFound is the 'MjrQuery', 'MnrQueryRelations' error classification // used when the relation query instance is not found. QueryRelationNotFound errors.Class )
var ( // for unavailable repository access. MnrRepositoryUnavailable errors.Minor // when the repository has insufficitent system resources to run. RepositoryUnavailableInsufficientResources errors.Class // when the repository reached program limit - i.e. tried to extract too many columns at once. RepositoryUnavailableProgramLimit errors.Class // when the repository is actually shutting down. RepositoryUnavailableShutdown errors.Class )
var ( // MnrRepositoryAuth is the 'MjrRepository' minor error classification // related with Authorization or Authentication issues. MnrRepositoryAuth errors.Minor // RepositoryAuthPrivileges is the 'MjrRepository', 'MnrRepositoryAuth' error classification // for insufficient authorization privileges issues. RepositoryAuthPrivileges errors.Class )
var ( // MnrRepositoryConnection is the 'MjrRepository' minor error classification // for the repository connection issues. MnrRepositoryConnection errors.Minor // RepositoryConnection is the 'MjrRepository', 'MnrRepositoryConnection' // error classification related with repository connection. RepositoryConnection errors.Class // RepositoryConnectionTimedOut is the 'MjrRepository', 'MnrRepositoryConnection' // error classification related with timed out connection. RepositoryConnectionTimedOut errors.Class // RepositoryConnectionURI is the 'MjrRepository', 'MnrRepositoryConnection' error classification // related with invalid connection URI for the repository. RepositoryConnectionURI errors.Class // RepositoryConnectionSSL is the 'MjrRepository', 'MnrRepositoryConnection' error classification // related with SSL for the repository connections. RepositoryConnectionSSL errors.Class )
var ( // MnrRepositoryNotImplements is the 'MjrRepository' minor error classification // for the repository interfaces. MnrRepositoryNotImplements errors.Minor // RepositoryNotImplementsTransactioner is the 'MjrRepository', 'MnrRepositoryInterface' error classification // for errors when the repository doesn't implement query.Transactioner interface. RepositoryNotImplementsTransactioner errors.Class // RepositoryNotImplementsCreator is the 'MjrRepository', 'MnrRepositoryInterface' error classification // for errors when the repository doesn't implement query.Creator interface. RepositoryNotImplementsCreator errors.Class // RepositoryNotImplementsDeleter is the 'MjrRepository', 'MnrRepositoryInterface' error classification // for errors when the repository doesn't implement query.Deleter interface. RepositoryNotImplementsDeleter errors.Class // RepositoryNotImplementsPatcher is the 'MjrRepository', 'MnrRepositoryInterface' error classification // for errors when the repository doesn't implement query.Patcher interface. RepositoryNotImplementsPatcher errors.Class // RepositoryNotImplementsLister is the 'MjrRepository', 'MnrRepositoryInterface' error classification // for errors when the repository doesn't implement query.Lister interface. RepositoryNotImplementsLister errors.Class // RepositoryNotImplementsGetter is the 'MjrRepository', 'MnrRepositoryInterface' error classification // for errors when the repository doesn't implement query.Getter interface. RepositoryNotImplementsGetter errors.Class // RepositoryNotImplementsCounter is the 'MjrRepository', 'MnrRepositoryInterface' error classification // for errors when the repository doesn't implement query.Counter interface. RepositoryNotImplementsCounter errors.Class // RepositoryNotImplementsMigrator is the 'MjrRepository', 'MnrRepositoryInterface' error classification // for errors when the repository doesn't implement repository.Migrator interface. RepositoryNotImplementsMigrator errors.Class )
var ( // MnrRepositoryNotFound is the 'MjrRepository' minor error classification // when the repository is not found. MnrRepositoryNotFound errors.Minor // RepositoryNotFound is the 'MjrRepository', 'MnrRepositoryNotFound' errors classification // when the repository for model is not found. RepositoryNotFound errors.Class )
var ( // MnrRepositoryFactory is the 'MjrRepository' minor error classification // for repository factories issues. MnrRepositoryFactory errors.Minor // RepositoryFactoryNotFound is the 'MjrRepository', 'MnrRepositoryFactory' error classification // for not found repository factory. RepositoryFactoryNotFound errors.Class // RepositoryFactoryAlreadyRegistered is the 'MjrRepository', 'MnrRepositoryFactory' error classification // for the factories that were already registered. RepositoryFactoryAlreadyRegistered errors.Class )
var ( // RepositoryModelReservedName is the 'MjrRepository', 'MnrRepositoryModel' error classification // for reserved names in the repositories. RepositoryModelReservedName errors.Class // RepositoryModelTags is the 'MjrRepository', 'MnrRepositoryModel' error classification // for invalid repository specific field tags. RepositoryModelTags errors.Class )
var ( // MnrRepositoryConfig is the 'MjrRepository' error classification for repository configurations MnrRepositoryConfig errors.Minor // RepositoryConfigAlreadyRegistered is the 'MjrRepository', 'MnrRepositoryConfig' error classification // for already registered repository configurations. RepositoryConfigAlreadyRegistered errors.Class // RepositoryConfigInvalid is the 'MjrRepository', 'MnrRepositoryConfig' error classification // for invalid repository configuration. RepositoryConfigInvalid errors.Class )
var ( // MnrRepositoryReplica is the 'MjrRepository' minor error classification // for replicas errors. MnrRepositoryReplica errors.Minor // RepositoryReplicaSetNotFound is the 'MjrRepository', 'MnrRepositoryReplica' error classification // where replica set is not found. RepositoryReplicaSetNotFound errors.Class // RepositoryReplicaShardNotFound is the 'MjrRepository', 'MnrRepositoryReplica' error classification // where replica shard is not found. RepositoryReplicaShardNotFound errors.Class // RepositoryReplicaNodeNotFound is the 'MjrRepository', 'MnrRepositoryReplica' error classification // where replica shard is not found. RepositoryReplicaNodeNotFound errors.Class // RepositoryReplica is the 'MjrRepository', 'MnrRepositoryReplica' error classification for repository replicas. RepositoryReplica errors.Class )
var MjrCommon errors.Major
MjrCommon is the common major errors classification.
var MjrConfig errors.Major
MjrConfig - major that classifies errors related with the config.
var MjrEncoding errors.Major
MjrEncoding - major that classifies errors related with the 'jsonapi' encoding
var MjrInternal errors.Major
MjrInternal is the major internal error classification.
var MjrLanguage errors.Major
MjrLanguage is the major language error classification
var MjrModel errors.Major
MjrModel - major that classifies errors related with the models mapping.
var MjrQuery errors.Major
MjrQuery - major that classifies all the errors related with creating, operating on or changing the queries.
var MjrRepository errors.Major
MjrRepository is the major error classification related with the repositories.
var MnrRepositoryModel errors.Minor
MnrRepositoryModel is the minor error classification for the repository model issues.
var RepositoryUnmappedError errors.Class
RepositoryUnmappedError is the error 'MjrRepository' classification used for unmapped repository specific error classes, types or codes.
Functions ¶
This section is empty.
Types ¶
This section is empty.