Versions in this module Expand all Collapse all v0 v0.1.1 Nov 16, 2022 Changes in this version + type DocumentError struct + func NewDocumentError(file *fs.File, err Err) DocumentError + func (e *DocumentError) SetFile(file *fs.File) + func (e *DocumentError) SetIncorrectUserType(s string) + func (e *DocumentError) SetIndex(index bytes.Index) + func (e *DocumentError) SetMessage(message string) + func (e *DocumentError) SourceSubString() string + func (e *DocumentError) String() string + func (e DocumentError) Code() ErrorCode + func (e DocumentError) Column() uint + func (e DocumentError) ErrCode() int + func (e DocumentError) Error() string + func (e DocumentError) Filename() string + func (e DocumentError) IncorrectUserType() string + func (e DocumentError) Index() bytes.Index + func (e DocumentError) Line() uint + func (e DocumentError) Message() string + func (e DocumentError) Position() uint + type Err interface + Code func() ErrorCode + type Error interface + Column func() uint + ErrCode func() int + Filename func() string + IncorrectUserType func() string + Line func() uint + Message func() string + Position func() uint + type ErrorCode int + const ErrAnnotationNotAllowed + const ErrArrayWasExpectedInOrRule + const ErrCannotSpecifyOtherRulesWithTypeReference + const ErrChecker + const ErrConflictAdditionalProperties + const ErrConstraintMaxItemsValidation + const ErrConstraintMaxNotFound + const ErrConstraintMinItemsValidation + const ErrConstraintMinNotFound + const ErrConstraintStringLengthValidation + const ErrConstraintValidation + const ErrDoesNotMatchAnyOfTheEnumValues + const ErrDoesNotMatchRegularExpression + const ErrDuplicateKeysInSchema + const ErrDuplicateRule + const ErrDuplicationInEnumRule + const ErrDuplicationOfNameOfTypes + const ErrElementNotFoundInArray + const ErrEmptyArrayInOrRule + const ErrEmptyEmail + const ErrEmptyJson + const ErrEmptyRuleSet + const ErrEmptySchema + const ErrEmptyType + const ErrEnumArrayExpected + const ErrEnumIsHoldRuleName + const ErrEnumRuleNotFound + const ErrGeneric + const ErrImpossible + const ErrImpossibleToDetermineTheJsonTypeDueToRecursion + const ErrIncompatibleTypes + const ErrIncorrectArrayItemTypeInEnumRule + const ErrIncorrectArrayItemTypeInOrRule + const ErrIncorrectConstraintValueForEmptyArray + const ErrIncorrectRuleForSeveralNode + const ErrIncorrectRuleValueType + const ErrIncorrectRuleWithoutExample + const ErrIncorrectUserType + const ErrInfinityRecursionDetected + const ErrInvalidCharacter + const ErrInvalidCharacterInAnnotationObjectKey + const ErrInvalidChildNodeTogetherWithOrRule + const ErrInvalidChildNodeTogetherWithTypeReference + const ErrInvalidConst + const ErrInvalidDate + const ErrInvalidDateTime + const ErrInvalidEmail + const ErrInvalidKeyShortcutType + const ErrInvalidKeyType + const ErrInvalidNestedElementsFoundForTypeAny + const ErrInvalidSchemaName + const ErrInvalidSchemaNameInAllOfRule + const ErrInvalidUri + const ErrInvalidUuid + const ErrInvalidValueInEnumRule + const ErrInvalidValueInTheTypeRule + const ErrInvalidValueOfConstraint + const ErrInvalidValueType + const ErrLiteralValueExpected + const ErrLoader + const ErrNodeGrow + const ErrNodeTypeCantBeGuessed + const ErrNotAnEnumRule + const ErrNotFoundRuleEnum + const ErrNotFoundRuleOr + const ErrNotFoundRulePrecision + const ErrObjectExpected + const ErrOneElementInArrayInOrRule + const ErrOrRuleSetValidation + const ErrPropertyNotFound + const ErrRegexInvalid + const ErrRegexUnexpectedEnd + const ErrRegexUnexpectedStart + const ErrRequiredKeyNotFound + const ErrRuleOptionalAppliesOnlyToObjectProperties + const ErrSchemaDoesNotSupportKey + const ErrShouldBeNoOtherRulesInSetWithAny + const ErrShouldBeNoOtherRulesInSetWithEnum + const ErrShouldBeNoOtherRulesInSetWithOr + const ErrTypeNameNotFoundInAllOfRule + const ErrTypeNotFound + const ErrUnacceptableRecursionInAllOfRule + const ErrUnacceptableUserTypeInAllOfRule + const ErrUnacceptableValueInAllOfRule + const ErrUnexpectedConstraint + const ErrUnexpectedEOF + const ErrUnexpectedLexInArrayValidator + const ErrUnexpectedLexInLiteralValidator + const ErrUnexpectedLexInMixedValidator + const ErrUnexpectedLexInObjectValidator + const ErrUnknownJSchemaType + const ErrUnknownRule + const ErrUnknownType + const ErrUnnecessaryLexemeAfterTheEndOfEnum + const ErrUserTypeFound + const ErrValidator + const ErrValueOfOneConstraintGreaterOrEqualToAnother + const ErrValueOfOneConstraintGreaterThanAnother + const ErrZeroPrecision + func (c ErrorCode) Code() ErrorCode + func (c ErrorCode) Error() string + func (c ErrorCode) Itoa() string + type Errorf struct + func Format(code ErrorCode, args ...interface{}) Errorf + func (e Errorf) Code() ErrorCode + func (e Errorf) Error() string