Documentation
¶
Overview ¶
Package errors defines common error types and constants used across the Lesser ActivityPub service layer. It provides centralized error definitions for activity processing, validation, federation operations, and various service-specific error conditions.
Index ¶
- Variables
- func GetHTTPStatus(err error) int
- func HasCategory(err error, category ErrorCategory) bool
- func HasCode(err error, code ErrorCode) bool
- func IsAppError(err error) bool
- func IsClientError(err error) bool
- func IsRetryable(err error) bool
- func IsRetryableError(err error) bool
- func IsServerError(err error) bool
- func IsTemporaryError(err error) bool
- type AppError
- func AIProcessorAnalysisFailed() *AppError
- func AIProcessorAnalysisSaveFailed() *AppError
- func AIProcessorContentExtractionFailed() *AppError
- func AIProcessorInvalidObjectPK() *AppError
- func AIProcessorNotAnalyzableType() *AppError
- func AIProcessorStreamUnmarshalFailed() *AppError
- func AWSConfigLoadFailed(err error) *AppError
- func AccessDenied(resource string) *AppError
- func AccessDeniedForResource(resourceType, resourceID string) *AppError
- func AccessTokenGenerationFailed(err error) *AppError
- func AccountAlreadyPinned(targetUsername string) *AppError
- func AccountNoActivityPubActor(username string) *AppError
- func AccountRateLimitCheckFailed(err error) *AppError
- func AccountRateLimitExceeded(resetTime int64) *AppError
- func ActivityDirectionUnknown(direction string) *AppError
- func ActivityInvalidField(field, reason string) *AppError
- func ActivityMissingField(field string) *AppError
- func ActivityNotFound(activityID string) *AppError
- func ActivityNotFoundLocally(activityID string) *AppError
- func ActivityObjectProcessingFailed(activityType string, err error) *AppError
- func ActivityParsingFailed(activityType string, err error) *AppError
- func ActivityPubActivityTypeEmpty() *AppError
- func ActivityPubActorURIEmpty() *AppError
- func ActivityPubActorURIMustUseHTTPS() *AppError
- func ActivityPubInvalidSignature() *AppError
- func ActivityPubSignatureHeaderEmpty() *AppError
- func ActivityPubUnsupportedActivityType(activityType string) *AppError
- func ActivityRecordUnmarshalFailed(err error) *AppError
- func ActivityTypeExtractionFailed(context string, err error) *AppError
- func ActivityTypeUnsupported(activityType string) *AppError
- func ActorAlreadyExists(username string) *AppError
- func ActorDomainBlocked(domain string) *AppError
- func ActorDomainNotAllowed(domain string) *AppError
- func ActorFetchFailed(actorID string, err error) *AppError
- func ActorIDFormatInvalid(actorID string) *AppError
- func ActorNotFound(actorID string) *AppError
- func ActorRetrievalFailed(err error) *AppError
- func ActorURIExtractionFailed(context string, err error) *AppError
- func ActorURIInvalid(uri string) *AppError
- func AlreadyExists(itemType string) *AppError
- func AnnounceActivityInvalid(reason string) *AppError
- func AnnounceObjectNotFound(objectID string) *AppError
- func AsAppError(err error) (*AppError, bool)
- func AudioInvalidFormat(format string) *AppError
- func AuditEventMarshalFailed(err error) *AppError
- func AuditLoggingFailed(err error) *AppError
- func AuditRepositoryUnavailable() *AppError
- func AuthFailed(reason string) *AppError
- func AuthServiceUnavailable(err error) *AppError
- func BackupFailed(err error) *AppError
- func BadRequest(message string) *AppError
- func BatchHasRetryableErrors(errorCount int) *AppError
- func BatchOperationFailed(operation string, err error) *AppError
- func BatchPartialFailure(successCount, failureCount int) *AppError
- func BatchPartialSuccess(successCount, totalCount int) *AppError
- func BatchSizeExceeded(size, maxSize int) *AppError
- func BioTooLong(maxLength int) *AppError
- func BlockActivityInvalid(reason string) *AppError
- func BlockAlreadyExists(blocker, blocked string) *AppError
- func BudgetLimitsInvalid() *AppError
- func BusinessRuleViolated(rule string, context map[string]interface{}) *AppError
- func CSRFTokenGenerationFailed(err error) *AppError
- func CSRFTokenInvalid() *AppError
- func CSRFTokenMissing() *AppError
- func CSRFTokenRotationFailed(err error) *AppError
- func CSRFValidationFailed() *AppError
- func CSVValidationFailed(reason string) *AppError
- func ChallengeRetrievalFailed(err error) *AppError
- func ChallengeStorageFailed(err error) *AppError
- func CircuitBreakerOpen() *AppError
- func CircuitBreakerReopened() *AppError
- func CollectionFetchFailed(collectionID string, err error) *AppError
- func CollectionInvalid(collectionID, reason string) *AppError
- func CollectionItemInvalid(reason string) *AppError
- func ConcurrentModification(resourceType string) *AppError
- func ConcurrentSessionLimitExceeded() *AppError
- func ConfigurationInvalid(configKey, reason string) *AppError
- func ConfigurationMissing(configKey string) *AppError
- func ConnectionFailed(connectionType string, err error) *AppError
- func ConstraintViolated(constraint string, err error) *AppError
- func ContentContainsForbiddenWord(word string) *AppError
- func ContentEmpty(contentType string) *AppError
- func ContentMustHaveContentOrMedia() *AppError
- func ContentNotAllowed(contentType, reason string) *AppError
- func ContentTooLong(contentType string, maxLength int) *AppError
- func ContentTypeNotAllowed(contentType string) *AppError
- func ContentValidationFailed(field, reason string) *AppError
- func CookieEntropyGenerationFailed(err error) *AppError
- func CostAggregatorAggregationFailed() *AppError
- func CostAggregatorCloudWatchMetric() *AppError
- func CostAggregatorEventMarshal() *AppError
- func CostAggregatorLambdaFunctionError() *AppError
- func CostAggregatorLambdaInvoke() *AppError
- func CostAggregatorSNSMessageMarshal() *AppError
- func CostAggregatorSNSPublish() *AppError
- func CostLimitApproaching(functionName string, currentCost float64, limit float64) *AppError
- func CostLimitExceeded(operation string, cost float64) *AppError
- func CostTrackingFailed(operation string, err error) *AppError
- func CostTrackingInitFailed(err error) *AppError
- func CreateActivityInvalid(reason string) *AppError
- func CreateFailed(itemType string, err error) *AppError
- func CreateObjectInvalid(reason string) *AppError
- func CreateObjectMissing() *AppError
- func CredentialCreationFailed(err error) *AppError
- func CredentialNotFound() *AppError
- func CredentialResponseParseFailed(err error) *AppError
- func CredentialRetrievalFailed(err error) *AppError
- func CredentialStorageFailed(err error) *AppError
- func CredentialValidationFailed(err error) *AppError
- func DLQMessageSendFailed(messageID string, err error) *AppError
- func DLQProcessingFailed(messageID string, err error) *AppError
- func DLQRetryExhausted(messageID string, maxAttempts int) *AppError
- func DataCorrupted(dataType string) *AppError
- func DataInconsistent(context string) *AppError
- func DataIntegrityViolated(reason string) *AppError
- func DatabaseConnectionFailed(err error) *AppError
- func DatabaseRequired() *AppError
- func DatabaseTimeout(operation string) *AppError
- func DatabaseTypeUnsupported(dbType string) *AppError
- func DatabaseUnavailable(err error) *AppError
- func DateRangeInvalid(reason string) *AppError
- func DeleteActivityInvalid(reason string) *AppError
- func DeleteFailed(itemType string, err error) *AppError
- func DeleteObjectNotFound(objectID string) *AppError
- func DeleteUnauthorized(actorID, objectID string) *AppError
- func DeliveryFailed(recipient string, err error) *AppError
- func DeliveryPermanentFailure(recipient string, reason string) *AppError
- func DeliveryRejected(recipient string, statusCode int) *AppError
- func DeliveryTimeout(recipient string) *AppError
- func DeliveryToDomainsFailed(count int, err error) *AppError
- func DeliveryToInboxesFailed(count int, err error) *AppError
- func DependencyInitializationFailed(dependency string, err error) *AppError
- func DeviceCreationFailed(err error) *AppError
- func DeviceIDRetrievalFailed(err error) *AppError
- func DeviceNotFound(deviceID string) *AppError
- func DeviceOwnershipMismatch() *AppError
- func DisplayNameTooLong(maxLength int) *AppError
- func DomainHealthScoreRetrievalFailed(domain string, err error) *AppError
- func DynamoDBConditionalCheckFailed(condition string) *AppError
- func DynamoDBItemTooLarge() *AppError
- func DynamoDBProvisionedThroughputExceeded() *AppError
- func EmailDomainInvalid() *AppError
- func EmailEmpty() *AppError
- func EmailInvalidFormat() *AppError
- func EmailRequired() *AppError
- func EmailTooLong() *AppError
- func EnhancedFederationProcessorDynamORMInit() *AppError
- func EnhancedFederationProcessorProcessRetry() *AppError
- func EnhancedFederationProcessorUnmarshalRetryMessage() *AppError
- func EntityTypeExtractionFailed(err error) *AppError
- func EnvironmentVariableMissing(varName string) *AppError
- func EnvironmentVariableRequired(varName string) *AppError
- func EventInvalid(eventType, reason string) *AppError
- func EventMissingField(eventType, field string) *AppError
- func EventParsingFailed(eventType string, err error) *AppError
- func EventProcessingFailed(eventType string, err error) *AppError
- func EventTooLarge(eventType string, size int64) *AppError
- func ExpandMediaSettingInvalid(setting string) *AppError
- func ExternalAPIError(apiName string, statusCode int, err error) *AppError
- func ExternalServiceUnavailable(serviceName string, err error) *AppError
- func FailedToCreate(itemType string, err error) *AppError
- func FailedToDecodePEM() *AppError
- func FailedToDelete(itemType string, err error) *AppError
- func FailedToGet(itemType string, err error) *AppError
- func FailedToList(itemType string, err error) *AppError
- func FailedToQuery(itemType string, err error) *AppError
- func FailedToRemove(itemType string, err error) *AppError
- func FailedToRetrieve(itemType string, err error) *AppError
- func FailedToSave(itemType string, err error) *AppError
- func FailedToStore(itemType string, err error) *AppError
- func FailedToUpdate(itemType string, err error) *AppError
- func FederationAggregatorAWSClientsInit() *AppError
- func FederationAggregatorActivitiesGet() *AppError
- func FederationAggregatorEventMarshal() *AppError
- func FederationAggregatorEventUnmarshal() *AppError
- func FederationAggregatorLambdaFunctionError() *AppError
- func FederationAggregatorLambdaInvocationFailed() *AppError
- func FederationAggregatorMessageProcessingFailed() *AppError
- func FederationAggregatorStore() *AppError
- func FederationDeliveryInvalidMessageBody() *AppError
- func FederationDeliveryMaxAttemptsExceeded() *AppError
- func FederationDeliveryMessageMarshalFailure() *AppError
- func FederationDeliveryMessageRequeueFailure() *AppError
- func FederationDeliverySigningActorMissing() *AppError
- func FederationErrorWithRemoteInfo(baseErr *AppError, remoteInstance, remoteActor string) *AppError
- func FieldTooLong(field string, maxLength int, actualLength int) *AppError
- func FieldTooShort(field string, minLength int, actualLength int) *AppError
- func FileSizeExceeded(size, maxSize int64) *AppError
- func FileSizeExceedsLimit(size, limit int64) *AppError
- func FileValidationFailed(reason string) *AppError
- func FilterActionInvalid(action string) *AppError
- func FilterContextInvalid(context string) *AppError
- func FilterKeywordEmpty() *AppError
- func FilterKeywordTooLong(maxLength int) *AppError
- func FlaggedObjectsNotFound() *AppError
- func FollowAlreadyExists(follower, followee string) *AppError
- func FollowNotFound(follower, followee string) *AppError
- func FollowRequestInvalid(reason string) *AppError
- func Forbidden(message string) *AppError
- func FormBoundaryMissing() *AppError
- func FormFieldInvalid(field, reason string) *AppError
- func FormFieldMissing(field string) *AppError
- func FormatNotSupported(format string) *AppError
- func GeneratedPrivateKeyStorageFailed(err error) *AppError
- func GetAccountAttemptCountFailed(err error) *AppError
- func GetFailed(itemType string, err error) *AppError
- func GetIPAttemptCountFailed(err error) *AppError
- func HTTPSignatureVerificationFailed(reason string) *AppError
- func HealthCheckFailed(instance string, err error) *AppError
- func HourlyCostLimitExceeded() *AppError
- func IDEmpty(idType string) *AppError
- func IDInvalidFormat(idType string) *AppError
- func IDTooLong(idType string, maxLength int) *AppError
- func IPAddressMismatch() *AppError
- func IPRateLimitCheckFailed(err error) *AppError
- func IPRateLimitExceeded(resetTime int64) *AppError
- func ImageInvalidFormat(format string) *AppError
- func ImposeAccountLockoutFailed(err error) *AppError
- func ImposeIPLockoutFailed(err error) *AppError
- func InboxMessageDuplicate(activityID string) *AppError
- func InboxMessageInvalid(reason string) *AppError
- func InboxProcessingFailed(reason string, err error) *AppError
- func InboxUnauthorized(actorID string) *AppError
- func IndexError(indexName string, err error) *AppError
- func InitDeployFailedToConvertToECDHKey() *AppError
- func InitDeployFailedToCreateOrUpdateSecret() *AppError
- func InitDeployFailedToGeneratePrivateKey() *AppError
- func InitDeployFailedToMarshalPrivateKey() *AppError
- func InstanceNotFound(domain string) *AppError
- func InstanceSuspended(domain string) *AppError
- func InstanceUnreachable(domain string, err error) *AppError
- func InsufficientHistoricalData(required int) *AppError
- func InsufficientPermissions(operation string) *AppError
- func InsufficientScope(requiredScope string) *AppError
- func InsufficientTrustees() *AppError
- func Internal(message string) *AppError
- func InternalWithCause(err error, message string) *AppError
- func InvalidActivityObject() *AppError
- func InvalidCharacters(field, allowedChars string) *AppError
- func InvalidCredentials() *AppError
- func InvalidFileSize() *AppError
- func InvalidFormat(field, expectedFormat string) *AppError
- func InvalidInput(field, reason string) *AppError
- func InvalidPlanTier() *AppError
- func InvalidPrivateKeyFormat() *AppError
- func InvalidPrivateKeyType() *AppError
- func InvalidQualitySetting() *AppError
- func InvalidRefreshTokenProvided() *AppError
- func InvalidSessionDataType() *AppError
- func InvalidSignatureFormat() *AppError
- func InvalidSignatureLength() *AppError
- func InvalidStateForOperation(currentState, operation string) *AppError
- func InvalidValue(field string, allowedValues []string, actual string) *AppError
- func ItemAlreadyExists(itemType string) *AppError
- func ItemAlreadyExistsWithID(itemType, id string) *AppError
- func ItemNotFound(itemType string) *AppError
- func ItemNotFoundWithID(itemType, id string) *AppError
- func JSONArrayTooLarge(maxElements int) *AppError
- func JSONBombDetected(reason string) *AppError
- func JSONFormatInvalid(reason string) *AppError
- func JSONInvalid(reason string) *AppError
- func JSONKeyTooLong(maxLength int) *AppError
- func JSONSizeTooLarge(maxSize int64) *AppError
- func JSONStringTooLong(maxLength int) *AppError
- func JSONTooDeep(maxDepth int) *AppError
- func JSONTooManyKeys(maxKeys int) *AppError
- func JWTUnexpectedSigningMethod() *AppError
- func KeyPairGenerationRotationFailed(err error) *AppError
- func KeyTypeUnsupported(keyType string) *AppError
- func KeypairGenerationFailed(err error) *AppError
- func LambdaColdStart(functionName string, duration int64) *AppError
- func LambdaConfigurationError(functionName, setting string) *AppError
- func LambdaInitializationFailed(functionName string, err error) *AppError
- func LambdaMemoryExceeded(functionName string, memoryUsed int64) *AppError
- func LambdaTimeout(functionName string) *AppError
- func LastAuthMethodDelete() *AppError
- func LikeActivityInvalid(reason string) *AppError
- func LikeObjectNotFound(objectID string) *AppError
- func ListFailed(itemType string, err error) *AppError
- func ListMemberAlreadyExists() *AppError
- func ListMemberNotFound() *AppError
- func ListNotFound(listID string) *AppError
- func ListRepliesPolicyInvalid(policy string) *AppError
- func ListTitleEmpty() *AppError
- func ListTitleTooLong(maxLength int) *AppError
- func LoggerRequired() *AppError
- func LoginBeginFailed(err error) *AppError
- func MaintenanceRequired(reason string) *AppError
- func MarshalingFailed(dataType string, err error) *AppError
- func MaxCredentialsReached() *AppError
- func MaxDevicesExceeded() *AppError
- func MediaAttachmentExpired(mediaID string) *AppError
- func MediaAttachmentNotReady(mediaID string) *AppError
- func MediaAttachmentValidationFailed(reason string) *AppError
- func MediaDescriptionTooLong(maxLength int) *AppError
- func MediaFileTooLarge(fileSize int64, maxSize int64) *AppError
- func MediaInvalidMimeType(mimeType string, allowedTypes []string) *AppError
- func MediaJobFailed(jobID string, err error) *AppError
- func MediaProcessingFailed(mediaType string, err error) *AppError
- func MessageMarshalingFailed(messageType string, err error) *AppError
- func MessageMismatch() *AppError
- func MetricUnsupported(metric string) *AppError
- func MetricsAggregatorAggregation() *AppError
- func MetricsAggregatorCleanup() *AppError
- func MetricsAggregatorMissingRequiredFields() *AppError
- func MetricsAggregatorServiceStatsRetrieval() *AppError
- func MetricsAggregatorStreamRecordUnmarshal() *AppError
- func MetricsCollectionFailed(metric string, err error) *AppError
- func MetricsProcessingFailed(metricType string, err error) *AppError
- func MigrationFailed(version string, err error) *AppError
- func MissingRequestID() *AppError
- func ModerationProcessingFailed(contentType string, err error) *AppError
- func ModerationThresholdInvalid() *AppError
- func MoveTargetMustBeSpecified() *AppError
- func MultipleErrors(errors []error, operation string) *AppError
- func MultipleValidationErrors(errors []string) *AppError
- func MustAgreeToTerms() *AppError
- func NetworkError(operation string, err error) *AppError
- func NewAppError(code ErrorCode, category ErrorCategory, message string) *AppError
- func NewAppErrorf(code ErrorCode, category ErrorCategory, format string, args ...interface{}) *AppError
- func NewAuthError(code ErrorCode, message string) *AppError
- func NewAuthInternalError(code ErrorCode, message string, internal error) *AppError
- func NewFederationError(code ErrorCode, message string) *AppError
- func NewFederationInternalError(code ErrorCode, message string, internal error) *AppError
- func NewLambdaError(code ErrorCode, message string) *AppError
- func NewLambdaInternalError(code ErrorCode, message string, internal error) *AppError
- func NewRefreshTokenGenerationFailed(err error) *AppError
- func NewStorageError(code ErrorCode, message string) *AppError
- func NewStorageInternalError(code ErrorCode, message string, internal error) *AppError
- func NewValidationError(field, message string) *AppError
- func NewValidationErrorWithCode(code ErrorCode, field, message string) *AppError
- func NilPattern() *AppError
- func NilPatternCache() *AppError
- func NilPatternMetric() *AppError
- func NilPatternTestResult() *AppError
- func NoDatabaseAvailable() *AppError
- func NoPreviousStateForRestoration(objectID string) *AppError
- func NoSharedInboxFound(domain string) *AppError
- func NodeInfoFailed(domain string, err error) *AppError
- func NonceGenerationFailed(err error) *AppError
- func NotFound(resource string) *AppError
- func NotFoundWithID(resource, id string) *AppError
- func NotRecoveryConfirmationActivity() *AppError
- func NoteProcessorDetectSentiment() *AppError
- func NoteProcessorGetNote() *AppError
- func NoteProcessorGetVotes() *AppError
- func NoteProcessorPartialBatchFailure() *AppError
- func NoteProcessorUpdateNoteAnalysis() *AppError
- func NoteProcessorUpdateNoteScore() *AppError
- func NotificationProcessingFailed(notificationType string, err error) *AppError
- func NotificationTypeInvalid(notificationType string) *AppError
- func OAuthClientNameEmpty() *AppError
- func OAuthGrantTypeInvalid(grantType string) *AppError
- func OAuthInvalidClient() *AppError
- func OAuthInvalidGrant() *AppError
- func OAuthInvalidScope(scope string) *AppError
- func OAuthRedirectURIInvalid(uri string) *AppError
- func OAuthResponseTypeInvalid(responseType string) *AppError
- func OAuthScopeInvalid(scope string) *AppError
- func OAuthUnsupportedGrantType(grantType string) *AppError
- func ObjectHistoryNotFound(objectID string) *AppError
- func ObjectIDExtractionFailed(context string, err error) *AppError
- func ObjectInvalidField(field, reason string) *AppError
- func ObjectMarshalingFailed(objectType string, err error) *AppError
- func ObjectMissingField(field string) *AppError
- func ObjectNotDeleted(objectID string) *AppError
- func ObjectNotFound(objectID string) *AppError
- func ObjectParsingFailed(objectType string, err error) *AppError
- func ObjectTypeUnsupported(objectType string) *AppError
- func ObjectUnmarshalingFailed(objectType string, err error) *AppError
- func ObjectValidationFailed(objectType string, reason string) *AppError
- func ObjectsNotFoundInActivity() *AppError
- func OldestSessionRemovalFailed(err error) *AppError
- func OperationNotAllowed(operation string) *AppError
- func OperationNotAllowedOnSelf(operation string) *AppError
- func OriginalActivityFetchFailed(err error) *AppError
- func OutboxActivityInvalid(reason string) *AppError
- func OutboxProcessingFailed(reason string, err error) *AppError
- func OutboxUnauthorized(actorID string) *AppError
- func PEMBlockDecodeFailed() *AppError
- func ParsingFailed(parseType string, err error) *AppError
- func PasswordContainsUsername() *AppError
- func PasswordHashingFailed(err error) *AppError
- func PasswordInsufficientLength() *AppError
- func PasswordMissingRequirement(requirement string) *AppError
- func PasswordRepeatedPattern() *AppError
- func PasswordSequentialPattern() *AppError
- func PasswordTooCommon() *AppError
- func PasswordTooLong(maxLength int) *AppError
- func PasswordTooShort(minLength int) *AppError
- func PasswordUpdateFailed(err error) *AppError
- func PatternAnalysisFailed(err error) *AppError
- func PatternCacheCreateFailed(err error) *AppError
- func PatternCacheNotFound() *AppError
- func PatternCacheUpdateFailed(err error) *AppError
- func PatternCreateFailed(err error) *AppError
- func PatternDeleteFailed(err error) *AppError
- func PatternMetricsCreateFailed(err error) *AppError
- func PatternMetricsQueryFailed(err error) *AppError
- func PatternMetricsUpdateFailed(err error) *AppError
- func PatternNotFound() *AppError
- func PatternQueryFailed(err error) *AppError
- func PatternSaveFailed(err error) *AppError
- func PatternTestResultCreateFailed(err error) *AppError
- func PatternTestResultNotFound() *AppError
- func PatternTestResultQueryFailed(err error) *AppError
- func PatternUpdateFailed(err error) *AppError
- func PatternValidationFailed(reason string) *AppError
- func PlanUpgradeFailed(err error) *AppError
- func PollExpiryInvalid() *AppError
- func PollExpiryTooLong(maxSeconds int) *AppError
- func PollExpiryTooShort(minSeconds int) *AppError
- func PollMultipleChoiceInvalid() *AppError
- func PollOptionEmpty() *AppError
- func PollOptionTooLong(maxLength int) *AppError
- func PollTooFewOptions(minOptions int) *AppError
- func PollTooManyOptions(maxOptions int, actualCount int) *AppError
- func PostConditionFailed(condition string) *AppError
- func PreConditionFailed(condition string) *AppError
- func PreviousStateNotAvailable(objectID string) *AppError
- func PrivateKeyMarshalFailed(err error) *AppError
- func PrivateKeyParseFailed(err error) *AppError
- func PrivateKeyRetrievalFailed(err error) *AppError
- func ProcessingFailed(processType string, err error) *AppError
- func PublicKeyEncodingFailed(err error) *AppError
- func PublicKeyMarshalFailed(err error) *AppError
- func PublicKeyRecoveryFailed(err error) *AppError
- func PushDeliveryFailed(deviceID string, err error) *AppError
- func QueryByFieldFailed(itemType, field string, err error) *AppError
- func QueryFailed(query string, err error) *AppError
- func QueryInvalid(query string, reason string) *AppError
- func QueueURLNotConfigured(queueName string) *AppError
- func QuotaExceeded(quotaType string, limit int64) *AppError
- func RSAKeyPairGenerationFailed(err error) *AppError
- func RateLimitExceeded(limitType string, resetTime int64) *AppError
- func RateLimitExceededGeneric(limitType string) *AppError
- func RecordAccountAttemptFailed(err error) *AppError
- func RecordIPAttemptFailed(err error) *AppError
- func RecoveryCodeClearFailed(err error) *AppError
- func RecoveryCodeGenerationFailed(err error) *AppError
- func RecoveryCodeHashingFailed(err error) *AppError
- func RecoveryCodeInvalid() *AppError
- func RecoveryCodeMarkUsedFailed(err error) *AppError
- func RecoveryCodeRetrievalFailed(err error) *AppError
- func RecoveryCodeStorageFailed(err error) *AppError
- func RecoveryCodeUsed() *AppError
- func RecoveryConfirmationFailed(err error) *AppError
- func RecoveryRequestExpired() *AppError
- func RecoveryRequestNotFound() *AppError
- func RecoveryRequestNotPending() *AppError
- func RecoveryRequestRetrievalFailed(err error) *AppError
- func RecoveryRequestStorageFailed(err error) *AppError
- func RecoveryRequestUpdateFailed(err error) *AppError
- func RecoveryTokenGenerationFailed(err error) *AppError
- func RecoveryTokenStorageFailed(err error) *AppError
- func RefreshTokenExpired() *AppError
- func RefreshTokenGenerationFailed(err error) *AppError
- func RefreshTokenInvalid() *AppError
- func RefreshTokenNotFound() *AppError
- func RefreshTokenRotationFailed(err error) *AppError
- func RegistrationBeginFailed(err error) *AppError
- func RegistryOptionApplyFailed(err error) *AppError
- func RegistryValidationFailed(reason string) *AppError
- func RelationshipAlreadyExists() *AppError
- func RelationshipNotFound() *AppError
- func RemoteFetchFailed(url string, err error) *AppError
- func RemoteFetchNotFound(url string) *AppError
- func RemoteFetchRateLimited(url string) *AppError
- func RemoteFetchTimeout(url string) *AppError
- func RemoteFetchUnauthorized(url string) *AppError
- func ReportTrustUpdaterMissingKeys() *AppError
- func ReportTrustUpdaterReportRetrieval() *AppError
- func RepositoryNotAvailable(repositoryType string) *AppError
- func RequiredFieldMissing(field string) *AppError
- func ResourceAccessDenied(resource string) *AppError
- func ResourceLocked(resourceType, resourceID string) *AppError
- func ResourceUnavailable(resourceType string) *AppError
- func RetrievedPrivateKeyInvalid() *AppError
- func RoutingFailed(destination string, err error) *AppError
- func SIEMRequestCreationFailed(err error) *AppError
- func SIEMResponseError() *AppError
- func SIEMTransmissionFailed(err error) *AppError
- func SNSPublishFailed(err error) *AppError
- func SQSBatchProcessingFailed(batchSize int, successCount int, err error) *AppError
- func SQSConnectionFailed(err error) *AppError
- func SQSMessageInvalid(messageID string, reason string) *AppError
- func SQSMessageProcessingFailed(messageID string, err error) *AppError
- func SQSMessageSendFailed(err error) *AppError
- func SQSMessageTooLarge(messageSize int64) *AppError
- func SQSRetryExhausted(messageID string, attempts int) *AppError
- func SQSVisibilityTimeoutExceeded(messageID string) *AppError
- func ScheduledTimeValidationFailed(reason string) *AppError
- func SearchIndexerCreateActorSearchIndex() *AppError
- func SearchIndexerCreateSearchIndex() *AppError
- func SearchIndexerExtractIndexableContent() *AppError
- func SearchIndexerPartialBatchFailure() *AppError
- func SearchIndexerStoreSearchIndex() *AppError
- func SearchIndexerUnmarshalStreamImage() *AppError
- func SearchIndexingFailed(indexType string, err error) *AppError
- func SecretCreationFailed(err error) *AppError
- func SecretDeletionFailed(err error) *AppError
- func SecretRetrievalRetriesFailed(err error) *AppError
- func SecretValueMarshalFailed(err error) *AppError
- func SecretValueNil() *AppError
- func SecretValueUnmarshalFailed(err error) *AppError
- func SecretsManagerConnectionFailed(err error) *AppError
- func SecretsManagerError(err error) *AppError
- func SecretsManagerNotAvailable() *AppError
- func SecurityViolation(violationType string) *AppError
- func ServiceInitializationFailed(serviceName string, err error) *AppError
- func ServiceInitializationFailedGeneric(service string, err error) *AppError
- func ServiceNotAvailable(serviceName string) *AppError
- func ServiceUnavailable(serviceName string) *AppError
- func SessionCannotBeExtended(reason string) *AppError
- func SessionCreationFailed(err error) *AppError
- func SessionDataDeserializationFailed(err error) *AppError
- func SessionDataSerializationFailed(err error) *AppError
- func SessionExpired() *AppError
- func SessionExtensionDisabled() *AppError
- func SessionIDGenerationFailed(err error) *AppError
- func SessionIDMismatch() *AppError
- func SessionMaxLifetimeReached() *AppError
- func SessionNotFound(sessionID string) *AppError
- func SessionSecurityCheckFailed(err error) *AppError
- func SessionSecurityValidationFailed(reason string) *AppError
- func SessionStorageFailed(err error) *AppError
- func SessionUpdateFailed(err error) *AppError
- func SignatureAddressMismatch() *AppError
- func SignatureExpired() *AppError
- func SignatureInvalid(reason string) *AppError
- func SignatureMissing() *AppError
- func SignatureVerificationFailed() *AppError
- func SigningActorRetrievalFailed(err error) *AppError
- func SigningKeyInvalid(keyID string) *AppError
- func SigningKeyNotFound(keyID string) *AppError
- func StatusIndexerCountReplies() *AppError
- func StatusIndexerNoNewImage() *AppError
- func StatusIndexerNoObjectData() *AppError
- func StatusIndexerPartialBatchFailure() *AppError
- func StatusIndexerProcessStatusEvent() *AppError
- func StatusIndexingFailed(statusID string, err error) *AppError
- func StatusInvalidVisibility(visibility string) *AppError
- func StatusLanguageInvalid(language string) *AppError
- func StatusNotFound(statusID string) *AppError
- func StatusSpoilerTextTooLong(maxLength int) *AppError
- func StatusTooManyMedia(maxCount int, actualCount int) *AppError
- func StorageActorNotFound(username string) *AppError
- func StorageFieldTooLong(field string, maxLength int) *AppError
- func StorageFieldTooShort(field string, minLength int) *AppError
- func StorageQuotaExceeded(userID string, quota int64) *AppError
- func StorageRequiredFieldMissing(field string) *AppError
- func StorageSessionNotFound(sessionID string) *AppError
- func StorageTypeUnsupported(storageType string) *AppError
- func StorageUserNotFound(username string) *AppError
- func StreamNewImageMissing(recordID string) *AppError
- func StreamOldImageMissing(recordID string) *AppError
- func StreamRecordInvalid(recordID string, reason string) *AppError
- func StreamRecordProcessingFailed(recordID string, err error) *AppError
- func StreamRouterFailed(streamType string, err error) *AppError
- func StreamUnmarshalFailed(recordID string, imageType string, err error) *AppError
- func StreamingAuthenticationRequired() *AppError
- func StreamingCircuitBreakerOpen(connectionID string) *AppError
- func StreamingCommandExecutionFailed() *AppError
- func StreamingConnectionClosed(connectionID string, reason string) *AppError
- func StreamingConnectionNotFound() *AppError
- func StreamingConnectionTimeout(connectionID string) *AppError
- func StreamingEventProcessingFailed(eventType string, err error) *AppError
- func StreamingFailedToSubscribe() *AppError
- func StreamingFailedToUnsubscribe() *AppError
- func StreamingHealthCheckFailed(connectionID string, err error) *AppError
- func StreamingInvalidCommandFormat() *AppError
- func StreamingInvalidMessageFormat() *AppError
- func StreamingInvalidStream() *AppError
- func StreamingRecoveryFailed(connectionID string, retryCount int, err error) *AppError
- func StreamingSyncFailed(connectionID string, err error) *AppError
- func StreamingUnknownMessageType() *AppError
- func StreamingUnknownRoute() *AppError
- func SystemActorKeyRetrievalFailed(err error) *AppError
- func SystemActorKeyRotationFailed(err error) *AppError
- func TamperingDetected(context string) *AppError
- func TargetCollectionMissing() *AppError
- func TargetIDExtractionFailed(context string, err error) *AppError
- func TimelineEntriesCreationFailed(err error) *AppError
- func TimelineEntriesWriteFailed(err error) *AppError
- func TimelineOrderInvalid(order string) *AppError
- func TimelineRemovalFailed(actorID string, err error) *AppError
- func TimelineRequiresField(timelineType, field string) *AppError
- func TimeoutError(operation string) *AppError
- func TimestampInFuture() *AppError
- func TimestampInvalidFormat(timestamp string) *AppError
- func TimestampTooOld(maxAge string) *AppError
- func TokenExpired() *AppError
- func TokenGenerationFailed(err error) *AppError
- func TokenInvalid(reason string) *AppError
- func TokenNotFound() *AppError
- func TokenReuse() *AppError
- func TokenRevoked() *AppError
- func TokenTooOld() *AppError
- func TokenVersionMismatch() *AppError
- func TombstoneStatusCheckFailed(objectID string, err error) *AppError
- func TooManyItems(count, maxCount int) *AppError
- func TooManyRequests(resource string) *AppError
- func TransactionConflict(resource string) *AppError
- func TransactionFailed(err error) *AppError
- func TransformFunctionNotSet() *AppError
- func TransformItemFailed(err error) *AppError
- func TrendAggregationFailed(trendType string, err error) *AppError
- func TrendAggregatorHashtagRetrieval() *AppError
- func TrendAggregatorLinkRetrieval() *AppError
- func TrendAggregatorStatusRetrieval() *AppError
- func TrusteeActorIDRequired() *AppError
- func TrusteeAlreadyVoted() *AppError
- func TrusteeDeletionFailed(err error) *AppError
- func TrusteeRetrievalFailed(err error) *AppError
- func TrusteeStorageFailed(err error) *AppError
- func URLHostNotAllowed(url, host string) *AppError
- func URLInvalid(url string) *AppError
- func URLSchemeNotAllowed(url, scheme string) *AppError
- func Unauthorized(message string) *AppError
- func UndoActivityInvalid(reason string) *AppError
- func UndoObjectNotFound(objectID string) *AppError
- func UndoUnauthorized(actorID, activityID string) *AppError
- func UnexpectedSigningMethod() *AppError
- func UniqueConstraintViolated(field string) *AppError
- func UnmarshalingFailed(dataType string, err error) *AppError
- func UnsupportedPrivateKeyType() *AppError
- func UnsupportedTimelineType(timelineType string) *AppError
- func UpdateActivityInvalid(reason string) *AppError
- func UpdateFailed(itemType string, err error) *AppError
- func UpdateObjectNotFound(objectID string) *AppError
- func UpdateUnauthorized(actorID, objectID string) *AppError
- func UploadLimitsInvalid() *AppError
- func UserAlreadyExists(username string) *AppError
- func UserDevicesRetrievalFailed(err error) *AppError
- func UserIDRequired() *AppError
- func UserNotApproved(username string) *AppError
- func UserNotFound(username string) *AppError
- func UserRetrievalFailed(err error) *AppError
- func UserSessionsRetrievalFailed(err error) *AppError
- func UserSuspended(username string) *AppError
- func UsernameConsecutiveUnderscores() *AppError
- func UsernameEmpty() *AppError
- func UsernameExtractionFailed(context string, err error) *AppError
- func UsernameInvalidCharacters() *AppError
- func UsernameInvalidFormat() *AppError
- func UsernameInvalidLength(minVal, maxVal int) *AppError
- func UsernameStartsOrEndsWithUnderscore() *AppError
- func UsernameTaken(username string) *AppError
- func ValidationFailed(field, message string) *AppError
- func ValidationFailedWithField(field string) *AppError
- func ValueOutOfRange(field string, minVal, maxVal, actual interface{}) *AppError
- func VideoDurationInvalid() *AppError
- func VideoFileTooLarge(fileSize int64, maxSize int64) *AppError
- func VideoInvalidFormat(format string) *AppError
- func WalletAddressMismatch() *AppError
- func WalletAlreadyLinked() *AppError
- func WalletChallengeExpired() *AppError
- func WalletCheckFailed(err error) *AppError
- func WalletDeletionFailed(err error) *AppError
- func WalletRetrievalFailed(err error) *AppError
- func WalletSignatureInvalid(reason string) *AppError
- func WalletStorageFailed(err error) *AppError
- func WebAuthnChallengeStorageFailed(err error) *AppError
- func WebAuthnLoginFailed(reason string) *AppError
- func WebAuthnNotConfigured() *AppError
- func WebAuthnRegistrationFailed(reason string) *AppError
- func WebAuthnServiceInitFailed(err error) *AppError
- func WebFingerFailed(identifier string, err error) *AppError
- func WebFingerNotFound(identifier string) *AppError
- func WebSocketCostAggregationFailed(err error) *AppError
- func WebSocketCostAllAlertMethodsFailed() *AppError
- func WebSocketCostCreateWebhookRequest() *AppError
- func WebSocketCostGetHighCostUsers() *AppError
- func WebSocketCostGetIdleConnections() *AppError
- func WebSocketCostGetStaleConnections() *AppError
- func WebSocketCostMarshalAlertMessage() *AppError
- func WebSocketCostPublishSNSMessage() *AppError
- func WebSocketCostTrackIdleConnections() *AppError
- func WebSocketCostWebhookNon2xxStatus() *AppError
- func WebSocketCostWebhookRequestFailed() *AppError
- func WorkflowInvalidState(currentState string) *AppError
- func WorkflowStepFailed(step string, err error) *AppError
- func WorkflowTimeout(workflowName string, duration int64) *AppError
- func WrapError(err error, code ErrorCode, category ErrorCategory, message string) *AppError
- func WrapErrorf(err error, code ErrorCode, category ErrorCategory, format string, ...) *AppError
- func WrapRemoteError(err error, operation, remoteInstance string) *AppError
- func WrapWithContext(err error, context string) *AppError
- func WrapWithOperation(err error, operation string) *AppError
- func WrapWithResource(err error, resourceType, resourceID string) *AppError
- func (e *AppError) AsNonRetryable() *AppError
- func (e *AppError) AsRetryable() *AppError
- func (e *AppError) Clone() *AppError
- func (e *AppError) Error() string
- func (e *AppError) Unwrap() error
- func (e *AppError) WithInternalError(err error) *AppError
- func (e *AppError) WithInternalMessage(msg string) *AppError
- func (e *AppError) WithMetadata(key string, value interface{}) *AppError
- type ErrorCategory
- type ErrorCode
Constants ¶
This section is empty.
Variables ¶
var ( // ErrGetEntityType is returned when entity type extraction fails ErrGetEntityType = errors.New("failed to get entity type") // ErrUnmarshalActivityRecord is returned when activity record unmarshaling fails ErrUnmarshalActivityRecord = errors.New("failed to unmarshal activity record") // ErrParseActivity is returned when activity parsing fails ErrParseActivity = errors.New("failed to parse activity") // ErrUnknownActivityDirection is returned when activity direction is not recognized ErrUnknownActivityDirection = errors.New("unknown activity direction") // Follow activity errors // ErrFollowMissingObjectID is returned when follow activity object is missing id field ErrFollowMissingObjectID = errors.New("follow activity object missing id field") // ErrFollowInvalidObjectType is returned when follow activity has invalid object type ErrFollowInvalidObjectType = errors.New("follow activity has invalid object type") // ErrFollowMissingTargetUser is returned when follow activity is missing target user ErrFollowMissingTargetUser = errors.New("follow activity missing target user") // ErrExtractUsernamesFromFollow is returned when username extraction from Follow activity fails ErrExtractUsernamesFromFollow = errors.New("failed to extract usernames from Follow activity") // ErrCreateFollowRelationship is returned when creating follow relationship fails ErrCreateFollowRelationship = errors.New("failed to create follow relationship") // Accept activity errors // ErrAcceptInvalidObjectType is returned when accept activity has invalid object type ErrAcceptInvalidObjectType = errors.New("accept activity has invalid object type") // ErrExtractUsernamesFromAccept is returned when username extraction from Accept activity fails ErrExtractUsernamesFromAccept = errors.New("failed to extract usernames from Accept activity") // ErrUpdateRelationshipStatus is returned when updating relationship status fails ErrUpdateRelationshipStatus = errors.New("failed to update relationship status") // Create activity errors // ErrExtractNote is returned when note extraction from create activity fails ErrExtractNote = errors.New("failed to extract Note") // ErrCreateStatus is returned when status creation fails ErrCreateStatus = errors.New("failed to create status") // ErrStoreObject is returned when object storage fails ErrStoreObject = errors.New("failed to store object") // ErrUnsupportedObjectType is returned when object type is not supported ErrUnsupportedObjectType = errors.New("unsupported object type") // ErrCreateTimelineEntries is returned when timeline entry creation fails ErrCreateTimelineEntries = errors.New("failed to create timeline entries") // Reject activity errors // ErrRejectInvalidObjectType is returned when reject activity has invalid object type ErrRejectInvalidObjectType = errors.New("reject activity has invalid object type") // ErrExtractUsernamesFromReject is returned when username extraction from Reject activity fails ErrExtractUsernamesFromReject = errors.New("failed to extract usernames from Reject activity") // ErrDeleteRejectedRelationship is returned when deleting rejected relationship fails ErrDeleteRejectedRelationship = errors.New("failed to delete rejected relationship") // Delete activity errors // ErrDeleteMissingObjectID is returned when delete activity object is missing id field ErrDeleteMissingObjectID = errors.New("delete activity object missing id field") // ErrDeleteInvalidObjectType is returned when delete activity has invalid object type ErrDeleteInvalidObjectType = errors.New("delete activity has invalid object type") // ErrDeleteMissingObjectID2 is returned when delete activity is missing object ID ErrDeleteMissingObjectID2 = errors.New("delete activity missing object ID") // ErrActorNotAuthorizedDelete is returned when actor is not authorized to delete object ErrActorNotAuthorizedDelete = errors.New("actor not authorized to delete object") // ErrCreateTombstone is returned when tombstone creation fails ErrCreateTombstone = errors.New("failed to create tombstone") // Like activity errors // ErrLikeMissingObjectID is returned when like activity object is missing id field ErrLikeMissingObjectID = errors.New("like activity object missing id field") // ErrLikeInvalidObjectType is returned when like activity has invalid object type ErrLikeInvalidObjectType = errors.New("like activity has invalid object type") // ErrLikeMissingObjectID2 is returned when like activity is missing object ID ErrLikeMissingObjectID2 = errors.New("like activity missing object ID") // ErrLikeMissingActor is returned when like activity is missing actor ErrLikeMissingActor = errors.New("like activity missing actor") // ErrCreateLikeRecord is returned when creating like record fails ErrCreateLikeRecord = errors.New("failed to create like record") // Announce activity errors // ErrAnnounceMissingObjectID is returned when announce activity object is missing id field ErrAnnounceMissingObjectID = errors.New("announce activity object missing id field") // ErrAnnounceInvalidObjectType is returned when announce activity has invalid object type ErrAnnounceInvalidObjectType = errors.New("announce activity has invalid object type") // ErrAnnounceMissingObjectID2 is returned when announce activity is missing object ID ErrAnnounceMissingObjectID2 = errors.New("announce activity missing object ID") // ErrAnnounceMissingActor is returned when announce activity is missing actor ErrAnnounceMissingActor = errors.New("announce activity missing actor") // ErrCreateAnnounceRecord is returned when creating announce record fails ErrCreateAnnounceRecord = errors.New("failed to create announce record") // Undo activity errors // ErrFetchOriginalActivity is returned when fetching original activity fails ErrFetchOriginalActivity = errors.New("failed to fetch original activity") // ErrUndoInvalidObjectType is returned when undo activity has invalid object type ErrUndoInvalidObjectType = errors.New("undo activity has invalid object type") // ErrExtractActivityTypeFromUndo is returned when extracting activity type from undo target fails ErrExtractActivityTypeFromUndo = errors.New("failed to extract activity type from undo target") // ErrActorNotAuthorizedUndo is returned when actor is not authorized to undo activity ErrActorNotAuthorizedUndo = errors.New("actor not authorized to undo activity") // ErrActivityNotFoundLocally is returned when activity is not found locally ErrActivityNotFoundLocally = errors.New("activity not found locally") // ErrExtractTargetActorFromFollow is returned when extracting target actor from follow activity fails ErrExtractTargetActorFromFollow = errors.New("unable to extract target actor from follow activity") // ErrDeleteFollowRelationship is returned when deleting follow relationship fails ErrDeleteFollowRelationship = errors.New("failed to delete follow relationship") // ErrExtractObjectIDFromCreate is returned when extracting object ID from create activity fails ErrExtractObjectIDFromCreate = errors.New("unable to extract object ID from create activity") // ErrUndoCreateMissingActor is returned when undo create activity is missing actor ErrUndoCreateMissingActor = errors.New("undo create activity missing actor") // ErrDeleteCreatedObject is returned when deleting created object fails ErrDeleteCreatedObject = errors.New("failed to delete created object") // ErrExtractObjectIDFromUpdate is returned when extracting object ID from update activity fails ErrExtractObjectIDFromUpdate = errors.New("unable to extract object ID from update activity") // ErrUndoUpdateMissingActor is returned when undo update activity is missing actor ErrUndoUpdateMissingActor = errors.New("undo update activity missing actor") // ErrGetObjectHistory is returned when getting object history fails ErrGetObjectHistory = errors.New("failed to get object history") // ErrNoHistoryFound is returned when no history is found for object ErrNoHistoryFound = errors.New("no history found for object") // ErrPreviousStateNotAvailable is returned when previous state is not available for object ErrPreviousStateNotAvailable = errors.New("previous state not available for object") // ErrRevertObject is returned when reverting object fails ErrRevertObject = errors.New("failed to revert object") // ErrExtractObjectIDFromDelete is returned when extracting object ID from delete activity fails ErrExtractObjectIDFromDelete = errors.New("unable to extract object ID from delete activity") // ErrUndoDeleteMissingActor is returned when undo delete activity is missing actor ErrUndoDeleteMissingActor = errors.New("undo delete activity missing actor") // ErrCheckTombstoneStatus is returned when checking tombstone status fails ErrCheckTombstoneStatus = errors.New("failed to check tombstone status") // ErrObjectNotDeleted is returned when object is not deleted ErrObjectNotDeleted = errors.New("object is not deleted") // ErrGetTombstone is returned when getting tombstone fails ErrGetTombstone = errors.New("failed to get tombstone") // ErrGetObjectHistoryForRestoration is returned when getting object history for restoration fails ErrGetObjectHistoryForRestoration = errors.New("failed to get object history for restoration") // ErrNoPreviousStateForRestoration is returned when no previous state is available for restoration ErrNoPreviousStateForRestoration = errors.New("no previous state available for restoration") // ErrRestoreObject is returned when restoring object fails ErrRestoreObject = errors.New("failed to restore object") // ErrExtractOriginalActivityIDFromAccept is returned when extracting original activity ID from accept activity fails ErrExtractOriginalActivityIDFromAccept = errors.New("unable to extract original activity ID from accept activity") // ErrUndoAcceptMissingActor is returned when undo accept activity is missing actor ErrUndoAcceptMissingActor = errors.New("undo accept activity missing actor") // ErrExtractFlaggedObjectIDFromFlag is returned when extracting flagged object ID from flag activity fails ErrExtractFlaggedObjectIDFromFlag = errors.New("unable to extract flagged object ID from flag activity") // ErrUndoFlagMissingActor is returned when undo flag activity is missing actor ErrUndoFlagMissingActor = errors.New("undo flag activity missing actor") // ErrRetrieveFlagsForObject is returned when retrieving flags for object fails ErrRetrieveFlagsForObject = errors.New("failed to retrieve flags for object") // ErrDeleteFlagRecord is returned when deleting flag record fails ErrDeleteFlagRecord = errors.New("failed to delete flag record") // ErrExtractMovedToTargetFromMove is returned when extracting moved-to target from move activity fails ErrExtractMovedToTargetFromMove = errors.New("unable to extract moved-to target from move activity") // ErrUndoMoveMissingActor is returned when undo move activity is missing actor ErrUndoMoveMissingActor = errors.New("undo move activity missing actor") // ErrExtractUsernameFromActorURI is returned when extracting username from actor URI fails ErrExtractUsernameFromActorURI = errors.New("unable to extract username from actor URI") // ErrClearMovedToField is returned when clearing movedTo field fails ErrClearMovedToField = errors.New("failed to clear movedTo field") // ErrExtractObjectIDFromActivity is returned when extracting object ID from activity fails ErrExtractObjectIDFromActivity = errors.New("unable to extract object ID from activity") // ErrUndoActivityMissingActor is returned when undo activity is missing actor ErrUndoActivityMissingActor = errors.New("undo activity missing actor") // ErrExtractListIDFromTargetCollection is returned when extracting list ID from target collection fails ErrExtractListIDFromTargetCollection = errors.New("unable to extract list ID from target collection") // ErrGetTargetList is returned when getting target list fails ErrGetTargetList = errors.New("failed to get target list") // ErrActorNoPermissionModifyList is returned when actor does not have permission to modify list ErrActorNoPermissionModifyList = errors.New("actor does not have permission to modify list") // ErrExtractUsernameFromObjectID is returned when extracting username from object ID fails ErrExtractUsernameFromObjectID = errors.New("unable to extract username from object ID") // ErrPerformListOperation is returned when list operation fails ErrPerformListOperation = errors.New("failed to perform list operation") // Block activity errors // ErrBlockMissingObjectID is returned when block activity object is missing id field ErrBlockMissingObjectID = errors.New("block activity object missing id field") // ErrBlockInvalidObjectType is returned when block activity has invalid object type ErrBlockInvalidObjectType = errors.New("block activity has invalid object type") // ErrBlockMissingBlockedActor is returned when block activity is missing blocked actor ErrBlockMissingBlockedActor = errors.New("block activity missing blocked actor") // ErrBlockMissingBlockerActor is returned when block activity is missing blocker actor ErrBlockMissingBlockerActor = errors.New("block activity missing blocker actor") // ErrCreateBlockRelationship is returned when creating block relationship fails ErrCreateBlockRelationship = errors.New("failed to create block relationship") // Flag activity errors // ErrExtractFlaggedObjectFromFlag is returned when extracting flagged object from Flag activity fails ErrExtractFlaggedObjectFromFlag = errors.New("unable to extract flagged object from Flag activity") // ErrNoFlaggedObjectsFound is returned when no flagged objects are found in Flag activity ErrNoFlaggedObjectsFound = errors.New("no flagged objects found in Flag activity") // ErrCreateFlagRecord is returned when creating flag record fails ErrCreateFlagRecord = errors.New("failed to create flag record") // Move activity errors // ErrMoveMustSpecifyTarget is returned when move activity must specify a target account ErrMoveMustSpecifyTarget = errors.New("move activity must specify a target account") // ErrExtractUsernameFromOldActorURI is returned when extracting username from old actor URI fails ErrExtractUsernameFromOldActorURI = errors.New("unable to extract username from old actor URI") // ErrUpdateMovedToField is returned when updating movedTo field fails ErrUpdateMovedToField = errors.New("failed to update movedTo field") // Collection activity errors (Add/Remove) // ErrActivityMissingTargetCollection is returned when activity is missing target collection ErrActivityMissingTargetCollection = errors.New("activity missing target collection") // ErrExtractObjectFromActivity is returned when extracting object from activity fails ErrExtractObjectFromActivity = errors.New("unable to extract object from activity") // ErrNoObjectsFoundInActivity is returned when no objects are found in activity ErrNoObjectsFoundInActivity = errors.New("no objects found in activity") // Target-specific activity errors // ErrExtractTargetIDFromActivity is returned when extracting target ID from activity fails ErrExtractTargetIDFromActivity = errors.New("unable to extract target ID from activity") // ErrDeleteActivityRecord is returned when deleting activity record fails ErrDeleteActivityRecord = errors.New("failed to delete activity record") // Timeline processing errors // ErrExtractUsernameFromActorID is returned when extracting username from actor ID fails ErrExtractUsernameFromActorID = errors.New("failed to extract username from actor ID") // ErrGetFollowers is returned when getting followers fails ErrGetFollowers = errors.New("failed to get followers") // Federation service errors // ErrUnsupportedDatabaseType is returned when database type is not supported ErrUnsupportedDatabaseType = errors.New("unsupported database type") // ErrNoDatabaseAvailable is returned when no database is available ErrNoDatabaseAvailable = errors.New("no database available") // ErrActivityMissingActor is returned when activity is missing actor ErrActivityMissingActor = errors.New("activity missing actor") // ErrInvalidActorIDFormat is returned when actor ID format is invalid ErrInvalidActorIDFormat = errors.New("invalid actor ID format") // Job queue service errors // ErrAWSConfigLoad is returned when AWS config loading fails ErrAWSConfigLoad = errors.New("failed to load AWS config") // ErrImportJobSerialization is returned when import job serialization fails ErrImportJobSerialization = errors.New("failed to serialize import job") // ErrImportJobQueue is returned when import job queuing fails ErrImportJobQueue = errors.New("failed to queue import job") // ErrExportJobSerialization is returned when export job serialization fails ErrExportJobSerialization = errors.New("failed to serialize export job") // ErrExportJobQueue is returned when export job queuing fails ErrExportJobQueue = errors.New("failed to queue export job") // ErrMediaJobSerialization is returned when media job serialization fails ErrMediaJobSerialization = errors.New("failed to serialize media job") // ErrMediaJobQueue is returned when media job queuing fails ErrMediaJobQueue = errors.New("failed to queue media job") // ErrScheduledJobSerialization is returned when scheduled job serialization fails ErrScheduledJobSerialization = errors.New("failed to serialize scheduled job") // ErrScheduledJobQueue is returned when scheduled job queuing fails ErrScheduledJobQueue = errors.New("failed to queue scheduled job") // ErrActivityJobSerialization is returned when activity job serialization fails ErrActivityJobSerialization = errors.New("failed to serialize activity job") // ErrActivityJobQueue is returned when activity job queuing fails ErrActivityJobQueue = errors.New("failed to queue activity job") // ErrQueueURLNotConfigured is returned when queue URL is not configured ErrQueueURLNotConfigured = errors.New("queue URL not configured") // ErrMessageSerialization is returned when message serialization fails ErrMessageSerialization = errors.New("failed to serialize message") // ErrDelayedJobQueue is returned when delayed job queuing fails ErrDelayedJobQueue = errors.New("failed to queue delayed job") // ErrBatchMessageSend is returned when batch message sending fails ErrBatchMessageSend = errors.New("failed to send batch messages") // ErrBatchOperation is returned when batch operation fails ErrBatchOperation = errors.New("batch operation failed") // ErrQueueAttributeQuery is returned when queue attribute query fails ErrQueueAttributeQuery = errors.New("failed to query queue attributes") // Lists service errors // ErrListValidationFailed is returned when list validation fails ErrListValidationFailed = errors.New("validation failed") // ErrListCreateFailed is returned when list creation fails ErrListCreateFailed = errors.New("failed to create list") // ErrListGetFailed is returned when list retrieval fails ErrListGetFailed = errors.New("failed to get list") // ErrListUpdateFailed is returned when list update fails ErrListUpdateFailed = errors.New("failed to update list") // ErrListDeleteFailed is returned when list deletion fails ErrListDeleteFailed = errors.New("failed to delete list") // ErrListMembershipCheckFailed is returned when list membership check fails ErrListMembershipCheckFailed = errors.New("failed to check membership") // ErrListMemberAddFailed is returned when adding member to list fails ErrListMemberAddFailed = errors.New("failed to add member to list") // ErrListMemberRemoveFailed is returned when removing member from list fails ErrListMemberRemoveFailed = errors.New("failed to remove member from list") // ErrListNotFound is returned when list is not found ErrListNotFound = errors.New("list not found") // ErrGetUserLists is returned when getting user lists fails ErrGetUserLists = errors.New("failed to get user lists") // ErrGetListTimeline is returned when getting list timeline fails ErrGetListTimeline = errors.New("failed to get list timeline") // ErrGetListMembers is returned when getting list members fails ErrGetListMembers = errors.New("failed to get list members") // List validation errors // ErrListUsernameRequired is returned when username is missing ErrListUsernameRequired = errors.New("username is required") // ErrListCreatorIDRequired is returned when creator ID is missing ErrListCreatorIDRequired = errors.New("creator_id is required") // ErrListTitleRequired is returned when title is missing ErrListTitleRequired = errors.New("title is required") // ErrListTitleEmpty is returned when title is empty ErrListTitleEmpty = errors.New("title cannot be empty") // ErrListIDRequired is returned when list ID is missing ErrListIDRequired = errors.New("list_id is required") // ErrListUpdaterIDRequired is returned when updater ID is missing ErrListUpdaterIDRequired = errors.New("updater_id is required") // ErrListDeleterIDRequired is returned when deleter ID is missing ErrListDeleterIDRequired = errors.New("deleter_id is required") // ErrListMemberUsernameRequired is returned when member username is missing ErrListMemberUsernameRequired = errors.New("member_username is required") // ErrListAdderIDRequired is returned when adder ID is missing ErrListAdderIDRequired = errors.New("adder_id is required") // ErrListRemoverIDRequired is returned when remover ID is missing ErrListRemoverIDRequired = errors.New("remover_id is required") // Notes service errors // ErrNotesValidationFailed is returned when notes validation fails ErrNotesValidationFailed = errors.New("validation failed") // ErrGetAuthorAccount is returned when getting author account fails ErrGetAuthorAccount = errors.New("failed to get author account") // ErrGetStatus is returned when status retrieval fails ErrGetStatus = errors.New("failed to get status") // ErrUpdateStatus is returned when status update fails ErrUpdateStatus = errors.New("failed to update status") // ErrDeleteStatus is returned when status deletion fails ErrDeleteStatus = errors.New("failed to delete status") // ErrStatusNotFound is returned when status is not found ErrStatusNotFound = errors.New("status not found") // ErrStatusIDRequired is returned when status ID is required but missing ErrStatusIDRequired = errors.New("status_id is required") // ErrCheckViewPermissions is returned when checking view permissions fails ErrCheckViewPermissions = errors.New("failed to check view permissions") // ErrCheckFollowingRelationship is returned when checking following relationship fails ErrCheckFollowingRelationship = errors.New("failed to check following relationship") // ErrHomeTimelineRequiresViewerID is returned when home timeline requires viewer_id ErrHomeTimelineRequiresViewerID = errors.New("home timeline requires viewer_id") // ErrUserTimelineRequiresAuthorID is returned when user timeline requires author_id ErrUserTimelineRequiresAuthorID = errors.New("user timeline requires author_id") // ErrConversationsTimelineRequiresConversationID is returned when conversations timeline requires conversation_id ErrConversationsTimelineRequiresConversationID = errors.New("conversations timeline requires conversation_id") // ErrDirectTimelineRequiresViewerID is returned when direct timeline requires viewer_id ErrDirectTimelineRequiresViewerID = errors.New("direct timeline requires viewer_id") // ErrHashtagTimelineRequiresHashtag is returned when hashtag timeline requires hashtag ErrHashtagTimelineRequiresHashtag = errors.New("hashtag timeline requires hashtag") // ErrListTimelineRequiresListID is returned when list timeline requires list_id ErrListTimelineRequiresListID = errors.New("list timeline requires list_id") // ErrUnsupportedTimelineType is returned when timeline type is unsupported ErrUnsupportedTimelineType = errors.New("unsupported timeline type") // ErrGetTimeline is returned when timeline retrieval fails ErrGetTimeline = errors.New("failed to get timeline") // ErrStatusContentValidationFailed is returned when status content validation fails ErrStatusContentValidationFailed = errors.New("status content validation failed") // ErrVisibilityValidationFailed is returned when visibility validation fails ErrVisibilityValidationFailed = errors.New("visibility validation failed") // ErrSpoilerTextValidationFailed is returned when spoiler text validation fails ErrSpoilerTextValidationFailed = errors.New("spoiler text validation failed") // ErrInvalidInReplyToID is returned when in_reply_to_id is invalid ErrInvalidInReplyToID = errors.New("invalid in_reply_to_id") // ErrContentCannotBeEmpty is returned when content cannot be empty ErrContentCannotBeEmpty = errors.New("content cannot be empty") // ErrContentTooLong is returned when content is too long ErrContentTooLong = errors.New("content too long (max 5000 characters)") // ErrContentTooLongShort is returned when content is too long for short form ErrContentTooLongShort = errors.New("content too long (max 500 characters)") // ErrBookmarkStatus is returned when bookmarking status fails ErrBookmarkStatus = errors.New("failed to bookmark status") // ErrUnbookmarkStatus is returned when unbookmarking status fails ErrUnbookmarkStatus = errors.New("failed to unbookmark status") // ErrGetBookmarks is returned when getting bookmarks fails ErrGetBookmarks = errors.New("failed to get bookmarks") // ErrGetLikers is returned when getting likers fails ErrGetLikers = errors.New("failed to get likers") // ErrGetRebloggerAccount is returned when getting reblogger account fails ErrGetRebloggerAccount = errors.New("failed to get reblogger account") // ErrReblogStatus is returned when reblogging status fails ErrReblogStatus = errors.New("failed to reblog status") // ErrGetRebloggers is returned when getting rebloggers fails ErrGetRebloggers = errors.New("failed to get rebloggers") // ErrMuteStatus is returned when muting status fails ErrMuteStatus = errors.New("failed to mute status") // ErrUnmuteStatus is returned when unmuting status fails ErrUnmuteStatus = errors.New("failed to unmute status") // ErrCreateLike is returned when creating like fails ErrCreateLike = errors.New("failed to create like") // ErrDeleteLike is returned when deleting like fails ErrDeleteLike = errors.New("failed to delete like") // ErrGetLikes is returned when getting likes fails ErrGetLikes = errors.New("failed to get likes") // ErrCreateReblog is returned when creating reblog fails ErrCreateReblog = errors.New("failed to create reblog") // ErrDeleteReblog is returned when deleting reblog fails ErrDeleteReblog = errors.New("failed to delete reblog") // ErrGetAnnounces is returned when getting announces fails ErrGetAnnounces = errors.New("failed to get announces") // ErrPinStatus is returned when pinning status fails ErrPinStatus = errors.New("failed to pin status") // ErrUnpinStatus is returned when unpinning status fails ErrUnpinStatus = errors.New("failed to unpin status") // ErrConversationServiceNotAvailable is returned when conversation service is not available ErrConversationServiceNotAvailable = errors.New("conversation service not available") // ErrMuteConversation is returned when muting conversation fails ErrMuteConversation = errors.New("failed to mute conversation") // ErrUnmuteConversation is returned when unmuting conversation fails ErrUnmuteConversation = errors.New("failed to unmute conversation") // ErrGetConversations is returned when getting conversations fails ErrGetConversations = errors.New("failed to get conversations") // ErrViewerIDRequiredForFavoritedTimeline is returned when viewer_id is required for favorited timeline ErrViewerIDRequiredForFavoritedTimeline = errors.New("viewer_id is required for favorited timeline") // ErrGetViewerAccount is returned when getting viewer account fails ErrGetViewerAccount = errors.New("failed to get viewer account") // ErrLikeRepositoryNotAvailable is returned when like repository is not available ErrLikeRepositoryNotAvailable = errors.New("like repository not available") // ErrGetLikedObjects is returned when getting liked objects fails ErrGetLikedObjects = errors.New("failed to get liked objects") // ErrGetStatuses is returned when getting statuses fails ErrGetStatuses = errors.New("failed to get statuses") // ErrCreateScheduledStatus is returned when creating scheduled status fails ErrCreateScheduledStatus = errors.New("failed to create scheduled status") // ErrScheduledTimeInPast is returned when scheduled time must be in the future ErrScheduledTimeInPast = errors.New("scheduled time must be in the future") // ErrMediaAttachmentWithID is returned when media attachment operation fails with specific ID ErrMediaAttachmentWithID = errors.New("media attachment operation failed") // ErrGetSearchSuggestions is returned when getting search suggestions fails ErrGetSearchSuggestions = errors.New("failed to get search suggestions") // ErrCreateCommunityNote is returned when creating community note fails ErrCreateCommunityNote = errors.New("failed to create community note") // ErrGetVisibleCommunityNotes is returned when getting visible community notes fails ErrGetVisibleCommunityNotes = errors.New("failed to get visible community notes") // ErrGetCommunityNote is returned when getting community note fails ErrGetCommunityNote = errors.New("failed to get community note") // ErrCreateCommunityNoteVote is returned when creating community note vote fails ErrCreateCommunityNoteVote = errors.New("failed to create community note vote") // ErrGetCommunityNotesByAuthor is returned when getting community notes by author fails ErrGetCommunityNotesByAuthor = errors.New("failed to get community notes by author") // ErrCountStatusesByAuthor is returned when counting statuses by author fails ErrCountStatusesByAuthor = errors.New("failed to count statuses by author") // ErrGetUserTimeline is returned when getting user timeline fails ErrGetUserTimeline = errors.New("failed to get user timeline") // ErrCountReplies is returned when counting replies fails ErrCountReplies = errors.New("failed to count replies") // ErrGetBoostCount is returned when getting boost count fails ErrGetBoostCount = errors.New("failed to get boost count") // ErrGetLikeCount is returned when getting like count fails ErrGetLikeCount = errors.New("failed to get like count") // ErrCheckUserHasLiked is returned when checking if user has liked fails ErrCheckUserHasLiked = errors.New("failed to check if user has liked") // ErrCheckUserHasReblogged is returned when checking if user has reblogged fails ErrCheckUserHasReblogged = errors.New("failed to check if user has reblogged") // ErrCheckUserHasBookmarked is returned when checking if user has bookmarked fails ErrCheckUserHasBookmarked = errors.New("failed to check if user has bookmarked") // ErrListUnauthorizedCreate is returned when user cannot create list for another user ErrListUnauthorizedCreate = errors.New("cannot create list for another user") ErrListUnauthorizedUpdate = errors.New("cannot update list owned by another user") ErrListUnauthorizedDelete = errors.New("cannot delete list owned by another user") ErrListUnauthorizedAddMember = errors.New("cannot add members to list owned by another user") ErrListUnauthorizedRemoveMember = errors.New("cannot remove members from list owned by another user") ErrListUnauthorizedView = errors.New("cannot view list owned by another user") ErrListUnauthorizedViewLists = errors.New("cannot view lists for another user") ErrListUnauthorizedViewTimeline = errors.New("cannot view timeline for list owned by another user") ErrListUnauthorizedViewMembers = errors.New("cannot view members of list owned by another user") // Emoji service errors // ErrEmojiNotFound is returned when emoji is not found ErrEmojiNotFound = errors.New("emoji not found") // ErrGetEmoji is returned when emoji retrieval fails ErrGetEmoji = errors.New("failed to get emoji") // ErrListEmojis is returned when emoji listing fails ErrListEmojis = errors.New("failed to list emojis") // ErrEmojiAlreadyExists is returned when emoji with shortcode already exists ErrEmojiAlreadyExists = errors.New("emoji already exists") // ErrCreateEmoji is returned when emoji creation fails ErrCreateEmoji = errors.New("failed to create emoji") // ErrCannotUpdateRemoteEmoji is returned when attempting to update a remote emoji ErrCannotUpdateRemoteEmoji = errors.New("cannot update remote emoji") // ErrUpdateEmoji is returned when emoji update fails ErrUpdateEmoji = errors.New("failed to update emoji") // ErrCannotDeleteRemoteEmoji is returned when attempting to delete a remote emoji ErrCannotDeleteRemoteEmoji = errors.New("cannot delete remote emoji") // ErrDeleteEmoji is returned when emoji deletion fails ErrDeleteEmoji = errors.New("failed to delete emoji") // ErrRemoteEmojiNotFound is returned when remote emoji is not found ErrRemoteEmojiNotFound = errors.New("remote emoji not found") // ErrGetRemoteEmoji is returned when remote emoji retrieval fails ErrGetRemoteEmoji = errors.New("failed to get remote emoji") // ErrCreateLocalEmojiCopy is returned when creating local emoji copy fails ErrCreateLocalEmojiCopy = errors.New("failed to create local emoji copy") // ErrSearchEmojis is returned when emoji search fails ErrSearchEmojis = errors.New("failed to search emojis") // ErrGetPopularEmojis is returned when getting popular emojis fails ErrGetPopularEmojis = errors.New("failed to get popular emojis") // ErrIncrementEmojiUsage is returned when incrementing emoji usage fails ErrIncrementEmojiUsage = errors.New("failed to increment emoji usage") // ErrInvalidShortcode is returned when shortcode validation fails ErrInvalidShortcode = errors.New("invalid shortcode") // ErrReservedShortcode is returned when shortcode is reserved ErrReservedShortcode = errors.New("shortcode is reserved") // Scheduled status media attachment errors // ErrMediaAttachmentNotFound is returned when media attachment is not found or inaccessible ErrMediaAttachmentNotFound = errors.New("media attachment not found or inaccessible") // ErrMediaAttachmentNotReady is returned when media attachment is not ready ErrMediaAttachmentNotReady = errors.New("media attachment not ready") // ErrMediaAttachmentExpired is returned when media attachment has expired ErrMediaAttachmentExpired = errors.New("media attachment has expired") // ErrRetrieveMediaAttachment is returned when retrieving media attachment fails ErrRetrieveMediaAttachment = errors.New("failed to retrieve media attachment") // ErrValidationFailed is returned when validation fails ErrValidationFailed = errors.New("validation failed") // Import/Export service errors // Export operation errors // ErrExportValidationFailed is returned when export validation fails ErrExportValidationFailed = errors.New("export validation failed") // ErrCreateExport is returned when export creation fails ErrCreateExport = errors.New("failed to create export") // ErrQueueExport is returned when export queueing fails ErrQueueExport = errors.New("failed to queue export") // ErrGetExport is returned when export retrieval fails ErrGetExport = errors.New("failed to get export") // ErrExportAccessForbidden is returned when user cannot access export ErrExportAccessForbidden = errors.New("user cannot access export") // ErrListExports is returned when export listing fails ErrListExports = errors.New("failed to list exports") // ErrUpdateExportProgress is returned when export progress update fails ErrUpdateExportProgress = errors.New("failed to update export progress") // ErrUpdateExportStatus is returned when export status update fails ErrUpdateExportStatus = errors.New("failed to update export status") // ErrExportNotFound is returned when export is not found ErrExportNotFound = errors.New("export not found") // ErrNotAuthorizedCancelExport is returned when user is not authorized to cancel export ErrNotAuthorizedCancelExport = errors.New("not authorized to cancel this export") // ErrCannotCancelCompletedExport is returned when trying to cancel completed export ErrCannotCancelCompletedExport = errors.New("cannot cancel completed export") // ErrExportAlreadyCancelled is returned when export is already cancelled ErrExportAlreadyCancelled = errors.New("export is already cancelled") // ErrCannotCancelFailedExport is returned when trying to cancel failed export ErrCannotCancelFailedExport = errors.New("cannot cancel failed export") // ErrCancelExport is returned when export cancellation fails ErrCancelExport = errors.New("failed to cancel export") // ErrGetCancelledExport is returned when getting cancelled export fails ErrGetCancelledExport = errors.New("failed to get cancelled export") // Import operation errors // ErrCreateImport is returned when import creation fails ErrCreateImport = errors.New("failed to create import") // ErrImportNotFound is returned when import is not found ErrImportNotFound = errors.New("import not found") // ErrNotAuthorizedAccessImport is returned when user is not authorized to access import ErrNotAuthorizedAccessImport = errors.New("not authorized to access this import") // ErrListImports is returned when import listing fails ErrListImports = errors.New("failed to list imports") // Export validation errors // ErrUserNotFound is returned when user is not found during validation ErrUserNotFound = errors.New("user not found") // ErrInvalidDateRangeOrder is returned when start date is after end date ErrInvalidDateRangeOrder = errors.New("invalid date range: start date after end date") // ErrInvalidDateRangeFuture is returned when end date is in the future ErrInvalidDateRangeFuture = errors.New("invalid date range: end date in the future") // Search service errors // ErrSearchAccounts is returned when account search operation fails ErrSearchAccounts = errors.New("failed to search accounts") ErrSearchHashtags = errors.New("failed to search hashtags") // ErrSearchStatuses is returned when status search operation fails ErrSearchStatuses = errors.New("failed to search statuses") // ErrGetDirectory is returned when directory retrieval fails ErrGetDirectory = errors.New("failed to get directory") // ErrGetSuggestions is returned when suggestions retrieval fails ErrGetSuggestions = errors.New("failed to get suggestions") // ErrRemoveSuggestion is returned when suggestion removal fails ErrRemoveSuggestion = errors.New("failed to remove suggestion") // Cost analytics service errors // ErrGetAICostData is returned when AI cost data retrieval fails ErrGetAICostData = errors.New("failed to get AI cost data") // ErrUnsupportedMetric is returned when an unsupported metric type is requested ErrUnsupportedMetric = errors.New("unsupported metric") // ErrInsufficientHistoricalData is returned when insufficient historical data for prediction ErrInsufficientHistoricalData = errors.New("insufficient historical data for prediction (need at least 7 points)") // Bulk operations service errors // ErrBulkOperationNotFound is returned when bulk operation is not found ErrBulkOperationNotFound = errors.New("operation not found") // ErrBulkOperationInvalidData is returned when bulk operation data is invalid ErrBulkOperationInvalidData = errors.New("invalid operation data") ErrBulkOperationUnauthorizedAccess = errors.New("unauthorized access to bulk operation") // ErrBulkContentNotFound is returned when bulk content is not found ErrBulkContentNotFound = errors.New("bulk content not found") ErrBulkContentUnauthorizedDelete = errors.New("not authorized to delete content") )
Activity processing errors
Functions ¶
func GetHTTPStatus ¶
GetHTTPStatus extracts the HTTP status code from an error
func HasCategory ¶
func HasCategory(err error, category ErrorCategory) bool
HasCategory checks if the error has the specified category
func IsClientError ¶
IsClientError checks if an error is a client error (4xx HTTP status).
func IsRetryable ¶
IsRetryable checks if the error is marked as retryable
func IsRetryableError ¶
IsRetryableError checks if an error is retryable.
func IsServerError ¶
IsServerError checks if an error is a server error (5xx HTTP status).
func IsTemporaryError ¶
IsTemporaryError checks if an error is temporary and should be retried.
Types ¶
type AppError ¶
type AppError struct {
// Code is the standardized error code for programmatic handling
Code ErrorCode `json:"code"`
// Category is the domain/category this error belongs to
Category ErrorCategory `json:"category"`
// Message is the user-friendly error message
Message string `json:"message"`
// InternalMessage contains detailed technical information for debugging
InternalMessage string `json:"-"`
// InternalError is the underlying error that caused this AppError
InternalError error `json:"-"`
// Metadata contains additional structured information about the error
Metadata map[string]interface{} `json:"metadata,omitempty"`
// HTTPStatusCode is the appropriate HTTP status code for this error
HTTPStatusCode int `json:"-"`
// Timestamp records when this error was created
Timestamp time.Time `json:"timestamp"`
// Retryable indicates whether this error represents a condition that might succeed on retry
Retryable bool `json:"retryable"`
// Stack contains the stack trace for debugging (only in development)
Stack string `json:"-"`
}
AppError represents a comprehensive application error that separates internal details from user-facing messages and provides structured information for logging, monitoring, and debugging.
func AIProcessorAnalysisFailed ¶
func AIProcessorAnalysisFailed() *AppError
AIProcessorAnalysisFailed creates an error indicating AI analysis failed.
func AIProcessorAnalysisSaveFailed ¶
func AIProcessorAnalysisSaveFailed() *AppError
AIProcessorAnalysisSaveFailed creates an error indicating failed to save AI analysis.
func AIProcessorContentExtractionFailed ¶
func AIProcessorContentExtractionFailed() *AppError
AIProcessorContentExtractionFailed creates an error indicating failed to extract content from stream record.
func AIProcessorInvalidObjectPK ¶
func AIProcessorInvalidObjectPK() *AppError
AIProcessorInvalidObjectPK creates an error indicating invalid object primary key format.
func AIProcessorNotAnalyzableType ¶
func AIProcessorNotAnalyzableType() *AppError
AIProcessorNotAnalyzableType creates an error indicating object type is not analyzable.
func AIProcessorStreamUnmarshalFailed ¶
func AIProcessorStreamUnmarshalFailed() *AppError
AIProcessorStreamUnmarshalFailed creates an error indicating failed to unmarshal stream record.
func AWSConfigLoadFailed ¶
AWSConfigLoadFailed creates an error indicating AWS config loading failed.
func AccessDenied ¶
AccessDenied creates an error indicating access to a resource is denied.
func AccessDeniedForResource ¶
AccessDeniedForResource creates an error indicating access was denied for a resource.
func AccessTokenGenerationFailed ¶
AccessTokenGenerationFailed creates an error indicating access token generation failed.
func AccountAlreadyPinned ¶
AccountAlreadyPinned creates an error when account is already pinned.
func AccountNoActivityPubActor ¶
AccountNoActivityPubActor creates an error when account has no ActivityPub actor.
func AccountRateLimitCheckFailed ¶
AccountRateLimitCheckFailed creates an error indicating account rate limit check failed.
func AccountRateLimitExceeded ¶
AccountRateLimitExceeded creates an error indicating too many failed attempts for an account.
func ActivityDirectionUnknown ¶
ActivityDirectionUnknown creates an error for unknown activity directions.
func ActivityInvalidField ¶
ActivityInvalidField creates an error indicating an ActivityPub activity has an invalid field.
func ActivityMissingField ¶
ActivityMissingField creates an error indicating an ActivityPub activity is missing a required field.
func ActivityNotFound ¶
ActivityNotFound creates an error indicating an activity was not found.
func ActivityNotFoundLocally ¶
ActivityNotFoundLocally creates an error when an activity is not found locally.
func ActivityObjectProcessingFailed ¶
ActivityObjectProcessingFailed creates an error indicating activity object processing failed.
func ActivityParsingFailed ¶
ActivityParsingFailed creates an error indicating ActivityPub activity parsing failed.
func ActivityPubActivityTypeEmpty ¶
func ActivityPubActivityTypeEmpty() *AppError
ActivityPubActivityTypeEmpty creates an error indicating activity type cannot be empty.
func ActivityPubActorURIEmpty ¶
func ActivityPubActorURIEmpty() *AppError
ActivityPubActorURIEmpty creates an error indicating actor URI cannot be empty.
func ActivityPubActorURIMustUseHTTPS ¶
func ActivityPubActorURIMustUseHTTPS() *AppError
ActivityPubActorURIMustUseHTTPS creates an error indicating actor URI must use HTTPS.
func ActivityPubInvalidSignature ¶
func ActivityPubInvalidSignature() *AppError
ActivityPubInvalidSignature creates an error indicating invalid signature missing keyId or signature.
func ActivityPubSignatureHeaderEmpty ¶
func ActivityPubSignatureHeaderEmpty() *AppError
ActivityPubSignatureHeaderEmpty creates an error indicating signature header is empty.
func ActivityPubUnsupportedActivityType ¶
ActivityPubUnsupportedActivityType creates an error indicating unsupported ActivityPub activity type.
func ActivityRecordUnmarshalFailed ¶
ActivityRecordUnmarshalFailed creates an error indicating activity record unmarshaling failed.
func ActivityTypeExtractionFailed ¶
ActivityTypeExtractionFailed creates an error for activity type extraction failures.
func ActivityTypeUnsupported ¶
ActivityTypeUnsupported creates an error indicating an unsupported ActivityPub activity type.
func ActorAlreadyExists ¶
ActorAlreadyExists creates an error indicating an actor already exists.
func ActorDomainBlocked ¶
ActorDomainBlocked creates an error indicating an actor domain is blocked.
func ActorDomainNotAllowed ¶
ActorDomainNotAllowed creates an error indicating an actor domain is not in the allowed list.
func ActorFetchFailed ¶
ActorFetchFailed creates an error indicating failed to fetch a remote actor.
func ActorIDFormatInvalid ¶
ActorIDFormatInvalid creates an error for invalid actor ID formats.
func ActorNotFound ¶
ActorNotFound creates an error indicating an ActivityPub actor was not found.
func ActorRetrievalFailed ¶
ActorRetrievalFailed creates an error indicating actor retrieval failed.
func ActorURIExtractionFailed ¶
ActorURIExtractionFailed creates an error for actor URI extraction failures.
func ActorURIInvalid ¶
ActorURIInvalid creates an error indicating an invalid actor URI.
func AlreadyExists ¶
AlreadyExists creates an error when an item already exists.
func AnnounceActivityInvalid ¶
AnnounceActivityInvalid creates an error indicating an invalid announce activity.
func AnnounceObjectNotFound ¶
AnnounceObjectNotFound creates an error indicating an announce target object was not found.
func AsAppError ¶
AsAppError attempts to convert an error to AppError
func AudioInvalidFormat ¶
AudioInvalidFormat creates an error indicating invalid audio format.
func AuditEventMarshalFailed ¶
AuditEventMarshalFailed creates an error indicating audit event marshalling failed.
func AuditLoggingFailed ¶
AuditLoggingFailed creates an error indicating audit logging failed.
func AuditRepositoryUnavailable ¶
func AuditRepositoryUnavailable() *AppError
AuditRepositoryUnavailable creates an error indicating audit repository is not available.
func AuthFailed ¶
AuthFailed creates an authentication failed error with the specified reason.
func AuthServiceUnavailable ¶
AuthServiceUnavailable creates an error indicating the authentication service is unavailable.
func BackupFailed ¶
BackupFailed creates an error indicating database backup failed.
func BatchHasRetryableErrors ¶
BatchHasRetryableErrors creates an error indicating a batch contains retryable errors.
func BatchOperationFailed ¶
BatchOperationFailed creates an error indicating a batch operation failed.
func BatchPartialFailure ¶
BatchPartialFailure creates an error indicating a batch operation partially failed.
func BatchPartialSuccess ¶
BatchPartialSuccess creates an error indicating batch processing partially succeeded.
func BatchSizeExceeded ¶
BatchSizeExceeded creates an error indicating batch size exceeds maximum.
func BioTooLong ¶
BioTooLong creates an error indicating bio is too long.
func BlockActivityInvalid ¶
BlockActivityInvalid creates an error indicating an invalid block activity.
func BlockAlreadyExists ¶
BlockAlreadyExists creates an error indicating a block relationship already exists.
func BudgetLimitsInvalid ¶
func BudgetLimitsInvalid() *AppError
BudgetLimitsInvalid creates an error for invalid budget limits.
func BusinessRuleViolated ¶
BusinessRuleViolated creates an error indicating a business rule was violated.
func CSRFTokenGenerationFailed ¶
CSRFTokenGenerationFailed creates an error indicating CSRF token generation failed.
func CSRFTokenInvalid ¶
func CSRFTokenInvalid() *AppError
CSRFTokenInvalid creates an error indicating a CSRF token is invalid.
func CSRFTokenMissing ¶
func CSRFTokenMissing() *AppError
CSRFTokenMissing creates an error indicating a CSRF token is missing.
func CSRFTokenRotationFailed ¶
CSRFTokenRotationFailed creates an error indicating CSRF token rotation failed.
func CSRFValidationFailed ¶
func CSRFValidationFailed() *AppError
CSRFValidationFailed creates an error indicating CSRF validation failed.
func CSVValidationFailed ¶
CSVValidationFailed creates an error for CSV validation failures.
func ChallengeRetrievalFailed ¶
ChallengeRetrievalFailed creates an error indicating challenge retrieval failed.
func ChallengeStorageFailed ¶
ChallengeStorageFailed creates an error indicating challenge storage failed.
func CircuitBreakerOpen ¶
func CircuitBreakerOpen() *AppError
CircuitBreakerOpen creates an error when circuit breaker is open due to cost limit.
func CircuitBreakerReopened ¶
func CircuitBreakerReopened() *AppError
CircuitBreakerReopened creates an error when circuit breaker is reopened due to high cost.
func CollectionFetchFailed ¶
CollectionFetchFailed creates an error indicating failed to fetch a collection.
func CollectionInvalid ¶
CollectionInvalid creates an error indicating an invalid collection.
func CollectionItemInvalid ¶
CollectionItemInvalid creates an error indicating an invalid collection item.
func ConcurrentModification ¶
ConcurrentModification creates an error indicating concurrent modification was detected.
func ConcurrentSessionLimitExceeded ¶
func ConcurrentSessionLimitExceeded() *AppError
ConcurrentSessionLimitExceeded creates an error indicating the maximum concurrent sessions limit has been exceeded.
func ConfigurationInvalid ¶
ConfigurationInvalid creates an error indicating configuration is invalid.
func ConfigurationMissing ¶
ConfigurationMissing creates an error indicating required configuration is missing.
func ConnectionFailed ¶
ConnectionFailed creates an error indicating connection failed.
func ConstraintViolated ¶
ConstraintViolated creates an error indicating a database constraint was violated.
func ContentContainsForbiddenWord ¶
ContentContainsForbiddenWord creates an error indicating content contains a forbidden word.
func ContentEmpty ¶
ContentEmpty creates an error indicating content cannot be empty.
func ContentMustHaveContentOrMedia ¶
func ContentMustHaveContentOrMedia() *AppError
ContentMustHaveContentOrMedia creates an error indicating content must have either text content or media attachments.
func ContentNotAllowed ¶
ContentNotAllowed creates an error indicating content is not allowed.
func ContentTooLong ¶
ContentTooLong creates an error indicating content exceeds maximum length.
func ContentTypeNotAllowed ¶
ContentTypeNotAllowed creates an error when content type is not allowed.
func ContentValidationFailed ¶
ContentValidationFailed creates an error for content validation failures.
func CookieEntropyGenerationFailed ¶
CookieEntropyGenerationFailed creates an error indicating cookie entropy generation failed.
func CostAggregatorAggregationFailed ¶
func CostAggregatorAggregationFailed() *AppError
CostAggregatorAggregationFailed creates an error indicating failed to aggregate costs.
func CostAggregatorCloudWatchMetric ¶
func CostAggregatorCloudWatchMetric() *AppError
CostAggregatorCloudWatchMetric creates an error indicating failed to put CloudWatch metric.
func CostAggregatorEventMarshal ¶
func CostAggregatorEventMarshal() *AppError
CostAggregatorEventMarshal creates an error indicating failed to marshal aggregation event.
func CostAggregatorLambdaFunctionError ¶
func CostAggregatorLambdaFunctionError() *AppError
CostAggregatorLambdaFunctionError creates an error indicating lambda function returned error.
func CostAggregatorLambdaInvoke ¶
func CostAggregatorLambdaInvoke() *AppError
CostAggregatorLambdaInvoke creates an error indicating failed to invoke lambda and send SQS message.
func CostAggregatorSNSMessageMarshal ¶
func CostAggregatorSNSMessageMarshal() *AppError
CostAggregatorSNSMessageMarshal creates an error indicating failed to marshal SNS message.
func CostAggregatorSNSPublish ¶
func CostAggregatorSNSPublish() *AppError
CostAggregatorSNSPublish creates an error indicating failed to publish SNS message.
func CostLimitApproaching ¶
CostLimitApproaching creates an error indicating Lambda cost limit is approaching.
func CostLimitExceeded ¶
CostLimitExceeded creates an error indicating cost limit was exceeded.
func CostTrackingFailed ¶
CostTrackingFailed creates an error indicating cost tracking failed.
func CostTrackingInitFailed ¶
CostTrackingInitFailed creates an error indicating cost tracking initialization failed.
func CreateActivityInvalid ¶
CreateActivityInvalid creates an error indicating an invalid create activity.
func CreateFailed ¶
CreateFailed creates an error indicating item creation failed.
func CreateObjectInvalid ¶
CreateObjectInvalid creates an error indicating an invalid create object.
func CreateObjectMissing ¶
func CreateObjectMissing() *AppError
CreateObjectMissing creates an error indicating a create activity is missing its object.
func CredentialCreationFailed ¶
CredentialCreationFailed creates an error indicating credential creation failed.
func CredentialNotFound ¶
func CredentialNotFound() *AppError
CredentialNotFound creates an error indicating an authentication credential was not found.
func CredentialResponseParseFailed ¶
CredentialResponseParseFailed creates an error indicating credential response parsing failed.
func CredentialRetrievalFailed ¶
CredentialRetrievalFailed creates an error indicating credential retrieval failed.
func CredentialStorageFailed ¶
CredentialStorageFailed creates an error indicating credential storage failed.
func CredentialValidationFailed ¶
CredentialValidationFailed creates an error indicating credential validation failed.
func DLQMessageSendFailed ¶
DLQMessageSendFailed creates an error indicating failed to send message to DLQ.
func DLQProcessingFailed ¶
DLQProcessingFailed creates an error indicating DLQ message processing failed.
func DLQRetryExhausted ¶
DLQRetryExhausted creates an error indicating DLQ retry attempts were exhausted.
func DataCorrupted ¶
DataCorrupted creates an error indicating data corruption was detected.
func DataInconsistent ¶
DataInconsistent creates an error indicating data inconsistency was detected.
func DataIntegrityViolated ¶
DataIntegrityViolated creates an error indicating a data integrity violation.
func DatabaseConnectionFailed ¶
DatabaseConnectionFailed creates an error indicating database connection failed.
func DatabaseRequired ¶
func DatabaseRequired() *AppError
DatabaseRequired creates an error when database connection is required.
func DatabaseTimeout ¶
DatabaseTimeout creates an error indicating a database operation timed out.
func DatabaseTypeUnsupported ¶
DatabaseTypeUnsupported creates an error for unsupported database types.
func DatabaseUnavailable ¶
DatabaseUnavailable creates an error indicating the database service is unavailable.
func DateRangeInvalid ¶
DateRangeInvalid creates an error for invalid date ranges.
func DeleteActivityInvalid ¶
DeleteActivityInvalid creates an error indicating an invalid delete activity.
func DeleteFailed ¶
DeleteFailed creates an error indicating item deletion failed.
func DeleteObjectNotFound ¶
DeleteObjectNotFound creates an error indicating a delete target object was not found.
func DeleteUnauthorized ¶
DeleteUnauthorized creates an error indicating unauthorized access to delete an object.
func DeliveryFailed ¶
DeliveryFailed creates an error indicating federation delivery failed.
func DeliveryPermanentFailure ¶
DeliveryPermanentFailure creates an error indicating a permanent delivery failure.
func DeliveryRejected ¶
DeliveryRejected creates an error indicating federation delivery was rejected.
func DeliveryTimeout ¶
DeliveryTimeout creates an error indicating federation delivery timed out.
func DeliveryToDomainsFailed ¶
DeliveryToDomainsFailed creates an error indicating failed delivery to multiple domains.
func DeliveryToInboxesFailed ¶
DeliveryToInboxesFailed creates an error indicating failed delivery to multiple inboxes.
func DependencyInitializationFailed ¶
DependencyInitializationFailed creates an error indicating dependency initialization failed.
func DeviceCreationFailed ¶
DeviceCreationFailed creates an error indicating device creation failed.
func DeviceIDRetrievalFailed ¶
DeviceIDRetrievalFailed creates an error indicating device ID retrieval failed.
func DeviceNotFound ¶
DeviceNotFound creates an error indicating a device was not found.
func DeviceOwnershipMismatch ¶
func DeviceOwnershipMismatch() *AppError
DeviceOwnershipMismatch creates an error indicating a device does not belong to the user.
func DisplayNameTooLong ¶
DisplayNameTooLong creates an error indicating display name is too long.
func DomainHealthScoreRetrievalFailed ¶
DomainHealthScoreRetrievalFailed creates an error for domain health score retrieval failures.
func DynamoDBConditionalCheckFailed ¶
DynamoDBConditionalCheckFailed creates an error indicating a DynamoDB conditional check failed.
func DynamoDBItemTooLarge ¶
func DynamoDBItemTooLarge() *AppError
DynamoDBItemTooLarge creates an error indicating a DynamoDB item exceeds maximum size.
func DynamoDBProvisionedThroughputExceeded ¶
func DynamoDBProvisionedThroughputExceeded() *AppError
DynamoDBProvisionedThroughputExceeded creates an error indicating DynamoDB capacity was exceeded.
func EmailDomainInvalid ¶
func EmailDomainInvalid() *AppError
EmailDomainInvalid creates an error indicating email domain is invalid.
func EmailEmpty ¶
func EmailEmpty() *AppError
EmailEmpty creates an error indicating email address is required.
func EmailInvalidFormat ¶
func EmailInvalidFormat() *AppError
EmailInvalidFormat creates an error indicating email address format is invalid.
func EmailRequired ¶
func EmailRequired() *AppError
EmailRequired creates an error when email is required but missing.
func EmailTooLong ¶
func EmailTooLong() *AppError
EmailTooLong creates an error indicating email address is too long.
func EnhancedFederationProcessorDynamORMInit ¶
func EnhancedFederationProcessorDynamORMInit() *AppError
EnhancedFederationProcessorDynamORMInit creates an error indicating failure to initialize DynamORM client.
func EnhancedFederationProcessorProcessRetry ¶
func EnhancedFederationProcessorProcessRetry() *AppError
EnhancedFederationProcessorProcessRetry creates an error indicating failure to process enhanced retry operation.
func EnhancedFederationProcessorUnmarshalRetryMessage ¶
func EnhancedFederationProcessorUnmarshalRetryMessage() *AppError
EnhancedFederationProcessorUnmarshalRetryMessage creates an error indicating failure to unmarshal retry message from SQS.
func EntityTypeExtractionFailed ¶
EntityTypeExtractionFailed creates an error for entity type extraction failures.
func EnvironmentVariableMissing ¶
EnvironmentVariableMissing creates an error indicating a required environment variable is missing.
func EnvironmentVariableRequired ¶
EnvironmentVariableRequired creates an error indicating a required environment variable is missing.
func EventInvalid ¶
EventInvalid creates an error indicating an invalid event structure.
func EventMissingField ¶
EventMissingField creates an error indicating an event is missing a required field.
func EventParsingFailed ¶
EventParsingFailed creates an error indicating failed to parse an event.
func EventProcessingFailed ¶
EventProcessingFailed creates an error indicating event processing failed.
func EventTooLarge ¶
EventTooLarge creates an error indicating an event exceeds size limit.
func ExpandMediaSettingInvalid ¶
ExpandMediaSettingInvalid creates an error for invalid expand media settings.
func ExternalAPIError ¶
ExternalAPIError creates an error indicating an external API error occurred.
func ExternalServiceUnavailable ¶
ExternalServiceUnavailable creates an error indicating an external service is unavailable.
func FailedToCreate ¶
FailedToCreate creates an error indicating creation of an item failed.
func FailedToDecodePEM ¶
func FailedToDecodePEM() *AppError
FailedToDecodePEM creates an error indicating failed to decode private key PEM.
func FailedToDelete ¶
FailedToDelete creates an error indicating deletion of an item failed.
func FailedToGet ¶
FailedToGet creates an error indicating retrieval of an item failed.
func FailedToList ¶
FailedToList creates an error indicating listing of items failed.
func FailedToQuery ¶
FailedToQuery creates an error indicating querying of items failed.
func FailedToRemove ¶
FailedToRemove creates an error indicating removal of an item failed.
func FailedToRetrieve ¶
FailedToRetrieve creates an error indicating retrieval of an item failed.
func FailedToSave ¶
FailedToSave creates an error indicating saving of an item failed.
func FailedToStore ¶
FailedToStore creates an error indicating storing of an item failed.
func FailedToUpdate ¶
FailedToUpdate creates an error indicating update of an item failed.
func FederationAggregatorAWSClientsInit ¶
func FederationAggregatorAWSClientsInit() *AppError
FederationAggregatorAWSClientsInit creates an error indicating failed to initialize AWS clients.
func FederationAggregatorActivitiesGet ¶
func FederationAggregatorActivitiesGet() *AppError
FederationAggregatorActivitiesGet creates an error indicating failed to get federation activities.
func FederationAggregatorEventMarshal ¶
func FederationAggregatorEventMarshal() *AppError
FederationAggregatorEventMarshal creates an error indicating failed to marshal aggregation event.
func FederationAggregatorEventUnmarshal ¶
func FederationAggregatorEventUnmarshal() *AppError
FederationAggregatorEventUnmarshal creates an error indicating failed to unmarshal aggregation event.
func FederationAggregatorLambdaFunctionError ¶
func FederationAggregatorLambdaFunctionError() *AppError
FederationAggregatorLambdaFunctionError creates an error indicating lambda function returned error.
func FederationAggregatorLambdaInvocationFailed ¶
func FederationAggregatorLambdaInvocationFailed() *AppError
FederationAggregatorLambdaInvocationFailed creates an error indicating failed to invoke lambda and send SQS message.
func FederationAggregatorMessageProcessingFailed ¶
func FederationAggregatorMessageProcessingFailed() *AppError
FederationAggregatorMessageProcessingFailed creates an error indicating failed to process SQS message.
func FederationAggregatorStore ¶
func FederationAggregatorStore() *AppError
FederationAggregatorStore creates an error indicating failed to store aggregation.
func FederationDeliveryInvalidMessageBody ¶
func FederationDeliveryInvalidMessageBody() *AppError
FederationDeliveryInvalidMessageBody creates an error indicating invalid message body format.
func FederationDeliveryMaxAttemptsExceeded ¶
func FederationDeliveryMaxAttemptsExceeded() *AppError
FederationDeliveryMaxAttemptsExceeded creates an error indicating delivery failed after maximum attempts.
func FederationDeliveryMessageMarshalFailure ¶
func FederationDeliveryMessageMarshalFailure() *AppError
FederationDeliveryMessageMarshalFailure creates an error indicating failed to marshal message for requeue.
func FederationDeliveryMessageRequeueFailure ¶
func FederationDeliveryMessageRequeueFailure() *AppError
FederationDeliveryMessageRequeueFailure creates an error indicating failed to requeue message.
func FederationDeliverySigningActorMissing ¶
func FederationDeliverySigningActorMissing() *AppError
FederationDeliverySigningActorMissing creates an error indicating signing actor not found.
func FederationErrorWithRemoteInfo ¶
FederationErrorWithRemoteInfo adds remote instance and actor information to a federation error.
func FieldTooLong ¶
FieldTooLong creates an error indicating a field exceeds maximum length.
func FieldTooShort ¶
FieldTooShort creates an error indicating a field is below minimum length.
func FileSizeExceeded ¶
FileSizeExceeded creates an error indicating file size exceeds limit.
func FileSizeExceedsLimit ¶
FileSizeExceedsLimit creates an error when file size exceeds the configured limit.
func FileValidationFailed ¶
FileValidationFailed creates an error for file validation failures.
func FilterActionInvalid ¶
FilterActionInvalid creates an error indicating invalid filter action.
func FilterContextInvalid ¶
FilterContextInvalid creates an error indicating invalid filter context.
func FilterKeywordEmpty ¶
func FilterKeywordEmpty() *AppError
FilterKeywordEmpty creates an error indicating filter keyword cannot be empty.
func FilterKeywordTooLong ¶
FilterKeywordTooLong creates an error indicating filter keyword is too long.
func FlaggedObjectsNotFound ¶
func FlaggedObjectsNotFound() *AppError
FlaggedObjectsNotFound creates an error when no flagged objects are found.
func FollowAlreadyExists ¶
FollowAlreadyExists creates an error indicating a follow relationship already exists.
func FollowNotFound ¶
FollowNotFound creates an error indicating a follow relationship was not found.
func FollowRequestInvalid ¶
FollowRequestInvalid creates an error indicating an invalid follow request.
func FormBoundaryMissing ¶
func FormBoundaryMissing() *AppError
FormBoundaryMissing creates an error indicating no boundary found in multipart content type.
func FormFieldInvalid ¶
FormFieldInvalid creates an error indicating form field is invalid.
func FormFieldMissing ¶
FormFieldMissing creates an error indicating required form field is missing.
func FormatNotSupported ¶
FormatNotSupported creates an error for unsupported file formats.
func GeneratedPrivateKeyStorageFailed ¶
GeneratedPrivateKeyStorageFailed creates an error indicating generated private key storage failed.
func GetAccountAttemptCountFailed ¶
GetAccountAttemptCountFailed creates an error indicating getting account attempt count failed.
func GetIPAttemptCountFailed ¶
GetIPAttemptCountFailed creates an error indicating getting IP attempt count failed.
func HTTPSignatureVerificationFailed ¶
HTTPSignatureVerificationFailed creates an error indicating HTTP signature verification failed.
func HealthCheckFailed ¶
HealthCheckFailed creates an error indicating a federation health check failed.
func HourlyCostLimitExceeded ¶
func HourlyCostLimitExceeded() *AppError
HourlyCostLimitExceeded creates an error when hourly cost limit would be exceeded.
func IDInvalidFormat ¶
IDInvalidFormat creates an error indicating ID format is invalid.
func IPAddressMismatch ¶
func IPAddressMismatch() *AppError
IPAddressMismatch creates an error indicating IP address mismatch.
func IPRateLimitCheckFailed ¶
IPRateLimitCheckFailed creates an error indicating IP rate limit check failed.
func IPRateLimitExceeded ¶
IPRateLimitExceeded creates an error indicating too many requests from an IP address.
func ImageInvalidFormat ¶
ImageInvalidFormat creates an error indicating invalid image format.
func ImposeAccountLockoutFailed ¶
ImposeAccountLockoutFailed creates an error indicating imposing account lockout failed.
func ImposeIPLockoutFailed ¶
ImposeIPLockoutFailed creates an error indicating imposing IP lockout failed.
func InboxMessageDuplicate ¶
InboxMessageDuplicate creates an error indicating a duplicate inbox message.
func InboxMessageInvalid ¶
InboxMessageInvalid creates an error indicating an invalid inbox message.
func InboxProcessingFailed ¶
InboxProcessingFailed creates an error indicating inbox processing failed.
func InboxUnauthorized ¶
InboxUnauthorized creates an error indicating unauthorized inbox access.
func IndexError ¶
IndexError creates an error indicating a database index error occurred.
func InitDeployFailedToConvertToECDHKey ¶
func InitDeployFailedToConvertToECDHKey() *AppError
InitDeployFailedToConvertToECDHKey creates an error indicating failed to convert to ECDH key.
func InitDeployFailedToCreateOrUpdateSecret ¶
func InitDeployFailedToCreateOrUpdateSecret() *AppError
InitDeployFailedToCreateOrUpdateSecret creates an error indicating failed to create or update secret.
func InitDeployFailedToGeneratePrivateKey ¶
func InitDeployFailedToGeneratePrivateKey() *AppError
InitDeployFailedToGeneratePrivateKey creates an error indicating failed to generate private key.
func InitDeployFailedToMarshalPrivateKey ¶
func InitDeployFailedToMarshalPrivateKey() *AppError
InitDeployFailedToMarshalPrivateKey creates an error indicating failed to marshal private key.
func InstanceNotFound ¶
InstanceNotFound creates an error indicating a federation instance was not found.
func InstanceSuspended ¶
InstanceSuspended creates an error indicating a federation instance is suspended.
func InstanceUnreachable ¶
InstanceUnreachable creates an error indicating a federation instance is unreachable.
func InsufficientHistoricalData ¶
InsufficientHistoricalData creates an error when insufficient historical data is available.
func InsufficientPermissions ¶
InsufficientPermissions creates an error indicating insufficient permissions for an operation.
func InsufficientScope ¶
InsufficientScope creates an error indicating insufficient permissions for the required scope.
func InsufficientTrustees ¶
func InsufficientTrustees() *AppError
InsufficientTrustees creates an error indicating insufficient trustees are configured.
func InternalWithCause ¶
InternalWithCause creates an internal error wrapping another error
func InvalidActivityObject ¶
func InvalidActivityObject() *AppError
InvalidActivityObject creates an error indicating invalid activity object.
func InvalidCharacters ¶
InvalidCharacters creates an error indicating a field contains invalid characters.
func InvalidCredentials ¶
func InvalidCredentials() *AppError
InvalidCredentials creates an error indicating invalid credentials.
func InvalidFileSize ¶
func InvalidFileSize() *AppError
InvalidFileSize creates an error for invalid file size configuration.
func InvalidFormat ¶
InvalidFormat creates an error indicating a field has an invalid format.
func InvalidInput ¶
InvalidInput creates an error indicating invalid input data.
func InvalidPlanTier ¶
func InvalidPlanTier() *AppError
InvalidPlanTier creates an error for invalid plan tier.
func InvalidPrivateKeyFormat ¶
func InvalidPrivateKeyFormat() *AppError
InvalidPrivateKeyFormat creates an error indicating invalid private key format.
func InvalidPrivateKeyType ¶
func InvalidPrivateKeyType() *AppError
InvalidPrivateKeyType creates an error for invalid private key types.
func InvalidQualitySetting ¶
func InvalidQualitySetting() *AppError
InvalidQualitySetting creates an error for invalid quality setting.
func InvalidRefreshTokenProvided ¶
func InvalidRefreshTokenProvided() *AppError
InvalidRefreshTokenProvided creates an error indicating invalid refresh token provided.
func InvalidSessionDataType ¶
func InvalidSessionDataType() *AppError
InvalidSessionDataType creates an error indicating invalid session data type.
func InvalidSignatureFormat ¶
func InvalidSignatureFormat() *AppError
InvalidSignatureFormat creates an error indicating invalid signature format.
func InvalidSignatureLength ¶
func InvalidSignatureLength() *AppError
InvalidSignatureLength creates an error indicating invalid signature length.
func InvalidStateForOperation ¶
InvalidStateForOperation creates an error indicating invalid state for an operation.
func InvalidValue ¶
InvalidValue creates an error indicating an invalid value that is not in the allowed values list.
func ItemAlreadyExists ¶
ItemAlreadyExists creates an error indicating an item already exists.
func ItemAlreadyExistsWithID ¶
ItemAlreadyExistsWithID creates an error indicating an item with the specified ID already exists.
func ItemNotFound ¶
ItemNotFound creates an error indicating an item was not found.
func ItemNotFoundWithID ¶
ItemNotFoundWithID creates an error indicating an item with the specified ID was not found.
func JSONArrayTooLarge ¶
JSONArrayTooLarge creates an error indicating JSON array has too many elements.
func JSONBombDetected ¶
JSONBombDetected creates an error indicating possible JSON bomb detected.
func JSONFormatInvalid ¶
JSONFormatInvalid creates an error for invalid JSON formats.
func JSONInvalid ¶
JSONInvalid creates an error indicating invalid JSON structure.
func JSONKeyTooLong ¶
JSONKeyTooLong creates an error indicating JSON key is too long.
func JSONSizeTooLarge ¶
JSONSizeTooLarge creates an error indicating JSON size exceeds maximum.
func JSONStringTooLong ¶
JSONStringTooLong creates an error indicating JSON string is too long.
func JSONTooDeep ¶
JSONTooDeep creates an error indicating JSON nesting too deep.
func JSONTooManyKeys ¶
JSONTooManyKeys creates an error indicating JSON object has too many keys.
func JWTUnexpectedSigningMethod ¶
func JWTUnexpectedSigningMethod() *AppError
JWTUnexpectedSigningMethod creates an error indicating JWT unexpected signing method.
func KeyPairGenerationRotationFailed ¶
KeyPairGenerationRotationFailed creates an error indicating key pair generation during rotation failed.
func KeyTypeUnsupported ¶
KeyTypeUnsupported creates an error for unsupported key types.
func KeypairGenerationFailed ¶
KeypairGenerationFailed creates an error for keypair generation failures.
func LambdaColdStart ¶
LambdaColdStart creates an error indicating a Lambda cold start was detected.
func LambdaConfigurationError ¶
LambdaConfigurationError creates an error indicating a Lambda configuration error.
func LambdaInitializationFailed ¶
LambdaInitializationFailed creates an error indicating Lambda initialization failed.
func LambdaMemoryExceeded ¶
LambdaMemoryExceeded creates an error indicating a Lambda memory limit was exceeded.
func LambdaTimeout ¶
LambdaTimeout creates an error indicating a Lambda function timed out.
func LastAuthMethodDelete ¶
func LastAuthMethodDelete() *AppError
LastAuthMethodDelete creates an error indicating the last authentication method cannot be deleted.
func LikeActivityInvalid ¶
LikeActivityInvalid creates an error indicating an invalid like activity.
func LikeObjectNotFound ¶
LikeObjectNotFound creates an error indicating a like target object was not found.
func ListFailed ¶
ListFailed creates an error indicating item listing failed.
func ListMemberAlreadyExists ¶
func ListMemberAlreadyExists() *AppError
ListMemberAlreadyExists creates an error indicating a list member already exists.
func ListMemberNotFound ¶
func ListMemberNotFound() *AppError
ListMemberNotFound creates an error indicating a list member was not found.
func ListNotFound ¶
ListNotFound creates an error indicating a list was not found.
func ListRepliesPolicyInvalid ¶
ListRepliesPolicyInvalid creates an error indicating invalid list replies policy.
func ListTitleEmpty ¶
func ListTitleEmpty() *AppError
ListTitleEmpty creates an error indicating list title cannot be empty.
func ListTitleTooLong ¶
ListTitleTooLong creates an error indicating list title is too long.
func LoggerRequired ¶
func LoggerRequired() *AppError
LoggerRequired creates an error when logger instance is required.
func LoginBeginFailed ¶
LoginBeginFailed creates an error indicating login begin failed.
func MaintenanceRequired ¶
MaintenanceRequired creates an error indicating database maintenance is required.
func MarshalingFailed ¶
MarshalingFailed creates an error indicating data marshaling failed.
func MaxCredentialsReached ¶
func MaxCredentialsReached() *AppError
MaxCredentialsReached creates an error indicating the maximum number of credentials has been reached.
func MaxDevicesExceeded ¶
func MaxDevicesExceeded() *AppError
MaxDevicesExceeded creates an error indicating the maximum number of devices has been exceeded.
func MediaAttachmentExpired ¶
MediaAttachmentExpired creates an error when media attachment has expired.
func MediaAttachmentNotReady ¶
MediaAttachmentNotReady creates an error when media attachment is not ready.
func MediaAttachmentValidationFailed ¶
MediaAttachmentValidationFailed creates an error for media attachment validation failures.
func MediaDescriptionTooLong ¶
MediaDescriptionTooLong creates an error indicating media description is too long.
func MediaFileTooLarge ¶
MediaFileTooLarge creates an error indicating media file size exceeds limit.
func MediaInvalidMimeType ¶
MediaInvalidMimeType creates an error indicating invalid media MIME type.
func MediaJobFailed ¶
MediaJobFailed creates an error indicating media job processing failed.
func MediaProcessingFailed ¶
MediaProcessingFailed creates an error indicating media processing failed.
func MessageMarshalingFailed ¶
MessageMarshalingFailed creates an error for message marshaling failures.
func MessageMismatch ¶
func MessageMismatch() *AppError
MessageMismatch creates an error indicating message mismatch.
func MetricUnsupported ¶
MetricUnsupported creates an error for unsupported metric types.
func MetricsAggregatorAggregation ¶
func MetricsAggregatorAggregation() *AppError
MetricsAggregatorAggregation creates an error indicating failed to aggregate metrics.
func MetricsAggregatorCleanup ¶
func MetricsAggregatorCleanup() *AppError
MetricsAggregatorCleanup creates an error indicating failed to cleanup metrics.
func MetricsAggregatorMissingRequiredFields ¶
func MetricsAggregatorMissingRequiredFields() *AppError
MetricsAggregatorMissingRequiredFields creates an error indicating missing required fields.
func MetricsAggregatorServiceStatsRetrieval ¶
func MetricsAggregatorServiceStatsRetrieval() *AppError
MetricsAggregatorServiceStatsRetrieval creates an error indicating failed to get service stats.
func MetricsAggregatorStreamRecordUnmarshal ¶
func MetricsAggregatorStreamRecordUnmarshal() *AppError
MetricsAggregatorStreamRecordUnmarshal creates an error indicating failed to unmarshal metric from stream record.
func MetricsCollectionFailed ¶
MetricsCollectionFailed creates an error indicating federation metrics collection failed.
func MetricsProcessingFailed ¶
MetricsProcessingFailed creates an error indicating metrics processing failed.
func MigrationFailed ¶
MigrationFailed creates an error indicating database migration failed.
func MissingRequestID ¶
func MissingRequestID() *AppError
MissingRequestID creates an error indicating missing request ID.
func ModerationProcessingFailed ¶
ModerationProcessingFailed creates an error indicating moderation processing failed.
func ModerationThresholdInvalid ¶
func ModerationThresholdInvalid() *AppError
ModerationThresholdInvalid creates an error for invalid moderation threshold.
func MoveTargetMustBeSpecified ¶
func MoveTargetMustBeSpecified() *AppError
MoveTargetMustBeSpecified creates an error when move activity must specify a target.
func MultipleErrors ¶
MultipleErrors creates an error aggregating multiple failures.
func MultipleValidationErrors ¶
MultipleValidationErrors creates an error indicating multiple validation errors occurred.
func MustAgreeToTerms ¶
func MustAgreeToTerms() *AppError
MustAgreeToTerms creates an error when user must agree to terms of service.
func NetworkError ¶
NetworkError creates an error indicating a network operation failed.
func NewAppError ¶
func NewAppError(code ErrorCode, category ErrorCategory, message string) *AppError
NewAppError creates a new AppError with the specified code and category
func NewAppErrorf ¶
func NewAppErrorf(code ErrorCode, category ErrorCategory, format string, args ...interface{}) *AppError
NewAppErrorf creates a new AppError with formatted message
func NewAuthError ¶
NewAuthError creates a new authentication error with the specified error code and message.
func NewAuthInternalError ¶
NewAuthInternalError creates an authentication error with internal details wrapped from an underlying error.
func NewFederationError ¶
NewFederationError creates a new federation error with the specified error code and message.
func NewFederationInternalError ¶
NewFederationInternalError creates a federation error with internal details wrapped from an underlying error.
func NewLambdaError ¶
NewLambdaError creates a new Lambda error with the specified error code and message.
func NewLambdaInternalError ¶
NewLambdaInternalError creates a Lambda error with internal details wrapped from an underlying error.
func NewRefreshTokenGenerationFailed ¶
NewRefreshTokenGenerationFailed creates an error indicating new refresh token generation failed.
func NewStorageError ¶
NewStorageError creates a new storage error with the specified error code and message.
func NewStorageInternalError ¶
NewStorageInternalError creates a storage error with internal details wrapped from an underlying error.
func NewValidationError ¶
NewValidationError creates a new validation error for the specified field and message.
func NewValidationErrorWithCode ¶
NewValidationErrorWithCode creates a validation error with a specific error code for the specified field.
func NilPatternCache ¶
func NilPatternCache() *AppError
NilPatternCache creates an error for nil pattern cache.
func NilPatternMetric ¶
func NilPatternMetric() *AppError
NilPatternMetric creates an error for nil pattern metric.
func NilPatternTestResult ¶
func NilPatternTestResult() *AppError
NilPatternTestResult creates an error for nil pattern test result.
func NoDatabaseAvailable ¶
func NoDatabaseAvailable() *AppError
NoDatabaseAvailable creates an error when no database is available.
func NoPreviousStateForRestoration ¶
NoPreviousStateForRestoration creates an error when no previous state is available for restoration.
func NoSharedInboxFound ¶
NoSharedInboxFound creates an error indicating no shared inbox was found for a domain.
func NodeInfoFailed ¶
NodeInfoFailed creates an error indicating NodeInfo fetch failed.
func NonceGenerationFailed ¶
NonceGenerationFailed creates an error indicating nonce generation failed.
func NotFoundWithID ¶
NotFoundWithID creates a not found error with specific ID
func NotRecoveryConfirmationActivity ¶
func NotRecoveryConfirmationActivity() *AppError
NotRecoveryConfirmationActivity creates an error indicating not a recovery confirmation activity.
func NoteProcessorDetectSentiment ¶
func NoteProcessorDetectSentiment() *AppError
NoteProcessorDetectSentiment creates an error indicating failed to detect sentiment.
func NoteProcessorGetNote ¶
func NoteProcessorGetNote() *AppError
NoteProcessorGetNote creates an error indicating failed to get note.
func NoteProcessorGetVotes ¶
func NoteProcessorGetVotes() *AppError
NoteProcessorGetVotes creates an error indicating failed to get votes.
func NoteProcessorPartialBatchFailure ¶
func NoteProcessorPartialBatchFailure() *AppError
NoteProcessorPartialBatchFailure creates an error indicating partial batch failure processing stream records.
func NoteProcessorUpdateNoteAnalysis ¶
func NoteProcessorUpdateNoteAnalysis() *AppError
NoteProcessorUpdateNoteAnalysis creates an error indicating failed to update note analysis.
func NoteProcessorUpdateNoteScore ¶
func NoteProcessorUpdateNoteScore() *AppError
NoteProcessorUpdateNoteScore creates an error indicating failed to update note score.
func NotificationProcessingFailed ¶
NotificationProcessingFailed creates an error indicating notification processing failed.
func NotificationTypeInvalid ¶
NotificationTypeInvalid creates an error indicating invalid notification type.
func OAuthClientNameEmpty ¶
func OAuthClientNameEmpty() *AppError
OAuthClientNameEmpty creates an error indicating OAuth client name is required.
func OAuthGrantTypeInvalid ¶
OAuthGrantTypeInvalid creates an error indicating invalid OAuth grant type.
func OAuthInvalidClient ¶
func OAuthInvalidClient() *AppError
OAuthInvalidClient creates an error indicating an invalid OAuth client.
func OAuthInvalidGrant ¶
func OAuthInvalidGrant() *AppError
OAuthInvalidGrant creates an error indicating an invalid OAuth grant.
func OAuthInvalidScope ¶
OAuthInvalidScope creates an error indicating an invalid OAuth scope.
func OAuthRedirectURIInvalid ¶
OAuthRedirectURIInvalid creates an error indicating invalid OAuth redirect URI.
func OAuthResponseTypeInvalid ¶
OAuthResponseTypeInvalid creates an error indicating invalid OAuth response type.
func OAuthScopeInvalid ¶
OAuthScopeInvalid creates an error indicating invalid OAuth scope.
func OAuthUnsupportedGrantType ¶
OAuthUnsupportedGrantType creates an error indicating an unsupported OAuth grant type.
func ObjectHistoryNotFound ¶
ObjectHistoryNotFound creates an error when object history is not available.
func ObjectIDExtractionFailed ¶
ObjectIDExtractionFailed creates an error for object ID extraction failures.
func ObjectInvalidField ¶
ObjectInvalidField creates an error indicating an ActivityPub object has an invalid field.
func ObjectMarshalingFailed ¶
ObjectMarshalingFailed creates an error indicating object marshaling failed.
func ObjectMissingField ¶
ObjectMissingField creates an error indicating an ActivityPub object is missing a required field.
func ObjectNotDeleted ¶
ObjectNotDeleted creates an error when an object is not deleted as expected.
func ObjectNotFound ¶
ObjectNotFound creates an error indicating an object was not found.
func ObjectParsingFailed ¶
ObjectParsingFailed creates an error indicating ActivityPub object parsing failed.
func ObjectTypeUnsupported ¶
ObjectTypeUnsupported creates an error for unsupported object types.
func ObjectUnmarshalingFailed ¶
ObjectUnmarshalingFailed creates an error indicating object unmarshaling failed.
func ObjectValidationFailed ¶
ObjectValidationFailed creates an error indicating object validation failed.
func ObjectsNotFoundInActivity ¶
func ObjectsNotFoundInActivity() *AppError
ObjectsNotFoundInActivity creates an error when no objects are found in an activity.
func OldestSessionRemovalFailed ¶
OldestSessionRemovalFailed creates an error indicating oldest session removal failed.
func OperationNotAllowed ¶
OperationNotAllowed creates an error indicating the specified operation is not allowed.
func OperationNotAllowedOnSelf ¶
OperationNotAllowedOnSelf creates an error indicating operation cannot be performed on self.
func OriginalActivityFetchFailed ¶
OriginalActivityFetchFailed creates an error for fetching original activity failures.
func OutboxActivityInvalid ¶
OutboxActivityInvalid creates an error indicating an invalid outbox activity.
func OutboxProcessingFailed ¶
OutboxProcessingFailed creates an error indicating outbox processing failed.
func OutboxUnauthorized ¶
OutboxUnauthorized creates an error indicating unauthorized outbox access.
func PEMBlockDecodeFailed ¶
func PEMBlockDecodeFailed() *AppError
PEMBlockDecodeFailed creates an error indicating PEM block decoding failed.
func ParsingFailed ¶
ParsingFailed creates an error indicating parsing failed.
func PasswordContainsUsername ¶
func PasswordContainsUsername() *AppError
PasswordContainsUsername creates an error indicating a password contains the username.
func PasswordHashingFailed ¶
PasswordHashingFailed creates an error indicating password processing failed.
func PasswordInsufficientLength ¶
func PasswordInsufficientLength() *AppError
PasswordInsufficientLength creates an error indicating password does not meet minimum length requirement.
func PasswordMissingRequirement ¶
PasswordMissingRequirement creates an error indicating a password does not meet requirements.
func PasswordRepeatedPattern ¶
func PasswordRepeatedPattern() *AppError
PasswordRepeatedPattern creates an error indicating password contains too many repeated characters.
func PasswordSequentialPattern ¶
func PasswordSequentialPattern() *AppError
PasswordSequentialPattern creates an error indicating password contains sequential characters.
func PasswordTooCommon ¶
func PasswordTooCommon() *AppError
PasswordTooCommon creates an error indicating a password is too common.
func PasswordTooLong ¶
PasswordTooLong creates an error indicating a password is too long.
func PasswordTooShort ¶
PasswordTooShort creates an error indicating a password is too short.
func PasswordUpdateFailed ¶
PasswordUpdateFailed creates an error indicating password update failed.
func PatternAnalysisFailed ¶
PatternAnalysisFailed creates an error for pattern analysis failure.
func PatternCacheCreateFailed ¶
PatternCacheCreateFailed creates an error for pattern cache creation failure.
func PatternCacheNotFound ¶
func PatternCacheNotFound() *AppError
PatternCacheNotFound creates an error indicating a pattern cache was not found.
func PatternCacheUpdateFailed ¶
PatternCacheUpdateFailed creates an error for pattern cache update failure.
func PatternCreateFailed ¶
PatternCreateFailed creates an error for pattern creation failure.
func PatternDeleteFailed ¶
PatternDeleteFailed creates an error for pattern deletion failure.
func PatternMetricsCreateFailed ¶
PatternMetricsCreateFailed creates an error for pattern metrics creation failure.
func PatternMetricsQueryFailed ¶
PatternMetricsQueryFailed creates an error for pattern metrics query failure.
func PatternMetricsUpdateFailed ¶
PatternMetricsUpdateFailed creates an error for pattern metrics update failure.
func PatternNotFound ¶
func PatternNotFound() *AppError
PatternNotFound creates an error indicating a moderation pattern was not found.
func PatternQueryFailed ¶
PatternQueryFailed creates an error for pattern query failure.
func PatternSaveFailed ¶
PatternSaveFailed creates an error for pattern save failure.
func PatternTestResultCreateFailed ¶
PatternTestResultCreateFailed creates an error for pattern test result creation failure.
func PatternTestResultNotFound ¶
func PatternTestResultNotFound() *AppError
PatternTestResultNotFound creates an error for pattern test result not found.
func PatternTestResultQueryFailed ¶
PatternTestResultQueryFailed creates an error for pattern test result query failure.
func PatternUpdateFailed ¶
PatternUpdateFailed creates an error for pattern update failure.
func PatternValidationFailed ¶
PatternValidationFailed creates an error for pattern validation failure.
func PlanUpgradeFailed ¶
PlanUpgradeFailed creates an error for plan upgrade failure.
func PollExpiryInvalid ¶
func PollExpiryInvalid() *AppError
PollExpiryInvalid creates an error indicating poll expiry time is invalid.
func PollExpiryTooLong ¶
PollExpiryTooLong creates an error indicating poll expiry time is too long.
func PollExpiryTooShort ¶
PollExpiryTooShort creates an error indicating poll expiry time is too short.
func PollMultipleChoiceInvalid ¶
func PollMultipleChoiceInvalid() *AppError
PollMultipleChoiceInvalid creates an error indicating invalid multiple choice setting.
func PollOptionEmpty ¶
func PollOptionEmpty() *AppError
PollOptionEmpty creates an error indicating poll option cannot be empty.
func PollOptionTooLong ¶
PollOptionTooLong creates an error indicating poll option is too long.
func PollTooFewOptions ¶
PollTooFewOptions creates an error indicating poll has too few options.
func PollTooManyOptions ¶
PollTooManyOptions creates an error indicating poll has too many options.
func PostConditionFailed ¶
PostConditionFailed creates an error indicating a post-condition was not met.
func PreConditionFailed ¶
PreConditionFailed creates an error indicating a pre-condition was not met.
func PreviousStateNotAvailable ¶
PreviousStateNotAvailable creates an error when previous state is not available.
func PrivateKeyMarshalFailed ¶
PrivateKeyMarshalFailed creates an error indicating private key marshalling failed.
func PrivateKeyParseFailed ¶
PrivateKeyParseFailed creates an error indicating private key parsing failed.
func PrivateKeyRetrievalFailed ¶
PrivateKeyRetrievalFailed creates an error indicating private key retrieval failed.
func ProcessingFailed ¶
ProcessingFailed creates an error indicating processing failed.
func PublicKeyEncodingFailed ¶
PublicKeyEncodingFailed creates an error for public key encoding failures.
func PublicKeyMarshalFailed ¶
PublicKeyMarshalFailed creates an error indicating public key marshalling failed.
func PublicKeyRecoveryFailed ¶
PublicKeyRecoveryFailed creates an error indicating public key recovery failed.
func PushDeliveryFailed ¶
PushDeliveryFailed creates an error indicating push notification delivery failed.
func QueryByFieldFailed ¶
QueryByFieldFailed creates an error indicating querying by field failed.
func QueryFailed ¶
QueryFailed creates an error indicating a database query failed.
func QueryInvalid ¶
QueryInvalid creates an error indicating a database query is invalid.
func QueueURLNotConfigured ¶
QueueURLNotConfigured creates an error when queue URL is not configured.
func QuotaExceeded ¶
QuotaExceeded creates an error indicating quota was exceeded.
func RSAKeyPairGenerationFailed ¶
RSAKeyPairGenerationFailed creates an error indicating RSA key pair generation failed.
func RateLimitExceeded ¶
RateLimitExceeded creates an error indicating a rate limit has been exceeded.
func RateLimitExceededGeneric ¶
RateLimitExceededGeneric creates an error indicating rate limit was exceeded.
func RecordAccountAttemptFailed ¶
RecordAccountAttemptFailed creates an error indicating recording account attempt failed.
func RecordIPAttemptFailed ¶
RecordIPAttemptFailed creates an error indicating recording IP attempt failed.
func RecoveryCodeClearFailed ¶
RecoveryCodeClearFailed creates an error indicating recovery code clearing failed.
func RecoveryCodeGenerationFailed ¶
RecoveryCodeGenerationFailed creates an error indicating recovery code generation failed.
func RecoveryCodeHashingFailed ¶
RecoveryCodeHashingFailed creates an error indicating recovery code hashing failed.
func RecoveryCodeInvalid ¶
func RecoveryCodeInvalid() *AppError
RecoveryCodeInvalid creates an error indicating a recovery code is invalid.
func RecoveryCodeMarkUsedFailed ¶
RecoveryCodeMarkUsedFailed creates an error indicating marking recovery code as used failed.
func RecoveryCodeRetrievalFailed ¶
RecoveryCodeRetrievalFailed creates an error indicating recovery code retrieval failed.
func RecoveryCodeStorageFailed ¶
RecoveryCodeStorageFailed creates an error indicating recovery code storage failed.
func RecoveryCodeUsed ¶
func RecoveryCodeUsed() *AppError
RecoveryCodeUsed creates an error indicating a recovery code has already been used.
func RecoveryConfirmationFailed ¶
RecoveryConfirmationFailed creates an error indicating recovery confirmation processing failed.
func RecoveryRequestExpired ¶
func RecoveryRequestExpired() *AppError
RecoveryRequestExpired creates an error indicating a recovery request has expired.
func RecoveryRequestNotFound ¶
func RecoveryRequestNotFound() *AppError
RecoveryRequestNotFound creates an error indicating a recovery request was not found.
func RecoveryRequestNotPending ¶
func RecoveryRequestNotPending() *AppError
RecoveryRequestNotPending creates an error indicating recovery request is not pending.
func RecoveryRequestRetrievalFailed ¶
RecoveryRequestRetrievalFailed creates an error indicating recovery request retrieval failed.
func RecoveryRequestStorageFailed ¶
RecoveryRequestStorageFailed creates an error indicating recovery request storage failed.
func RecoveryRequestUpdateFailed ¶
RecoveryRequestUpdateFailed creates an error indicating recovery request update failed.
func RecoveryTokenGenerationFailed ¶
RecoveryTokenGenerationFailed creates an error indicating recovery token generation failed.
func RecoveryTokenStorageFailed ¶
RecoveryTokenStorageFailed creates an error indicating recovery token storage failed.
func RefreshTokenExpired ¶
func RefreshTokenExpired() *AppError
RefreshTokenExpired creates an error indicating a refresh token has expired.
func RefreshTokenGenerationFailed ¶
RefreshTokenGenerationFailed creates an error indicating refresh token generation failed.
func RefreshTokenInvalid ¶
func RefreshTokenInvalid() *AppError
RefreshTokenInvalid creates an error indicating a refresh token is invalid.
func RefreshTokenNotFound ¶
func RefreshTokenNotFound() *AppError
RefreshTokenNotFound creates an error indicating a refresh token was not found.
func RefreshTokenRotationFailed ¶
RefreshTokenRotationFailed creates an error indicating refresh token rotation failed.
func RegistrationBeginFailed ¶
RegistrationBeginFailed creates an error indicating registration begin failed.
func RegistryOptionApplyFailed ¶
RegistryOptionApplyFailed creates an error for registry option application failures.
func RegistryValidationFailed ¶
RegistryValidationFailed creates an error for registry validation failures.
func RelationshipAlreadyExists ¶
func RelationshipAlreadyExists() *AppError
RelationshipAlreadyExists creates an error indicating a relationship already exists.
func RelationshipNotFound ¶
func RelationshipNotFound() *AppError
RelationshipNotFound creates an error indicating a relationship was not found.
func RemoteFetchFailed ¶
RemoteFetchFailed creates an error indicating failed to fetch a remote resource.
func RemoteFetchNotFound ¶
RemoteFetchNotFound creates an error indicating a remote resource was not found.
func RemoteFetchRateLimited ¶
RemoteFetchRateLimited creates an error indicating remote fetch was rate limited.
func RemoteFetchTimeout ¶
RemoteFetchTimeout creates an error indicating remote fetch timed out.
func RemoteFetchUnauthorized ¶
RemoteFetchUnauthorized creates an error indicating remote fetch was unauthorized.
func ReportTrustUpdaterMissingKeys ¶
func ReportTrustUpdaterMissingKeys() *AppError
ReportTrustUpdaterMissingKeys creates an error indicating missing keys.
func ReportTrustUpdaterReportRetrieval ¶
func ReportTrustUpdaterReportRetrieval() *AppError
ReportTrustUpdaterReportRetrieval creates an error indicating failed to get report.
func RepositoryNotAvailable ¶
RepositoryNotAvailable creates an error when a repository is not available.
func RequiredFieldMissing ¶
RequiredFieldMissing creates an error indicating a required field is missing or empty.
func ResourceAccessDenied ¶
ResourceAccessDenied creates an error indicating Lambda resource access was denied.
func ResourceLocked ¶
ResourceLocked creates an error indicating a resource is locked.
func ResourceUnavailable ¶
ResourceUnavailable creates an error indicating a resource is temporarily unavailable.
func RetrievedPrivateKeyInvalid ¶
func RetrievedPrivateKeyInvalid() *AppError
RetrievedPrivateKeyInvalid creates an error indicating retrieved private key is invalid.
func RoutingFailed ¶
RoutingFailed creates an error indicating federation routing failed.
func SIEMRequestCreationFailed ¶
SIEMRequestCreationFailed creates an error indicating SIEM request creation failed.
func SIEMResponseError ¶
func SIEMResponseError() *AppError
SIEMResponseError creates an error indicating SIEM returned error status.
func SIEMTransmissionFailed ¶
SIEMTransmissionFailed creates an error indicating SIEM transmission failed.
func SNSPublishFailed ¶
SNSPublishFailed creates an error when publishing to SNS fails.
func SQSBatchProcessingFailed ¶
SQSBatchProcessingFailed creates an error indicating SQS batch processing failed.
func SQSConnectionFailed ¶
SQSConnectionFailed creates an error for SQS connection failures.
func SQSMessageInvalid ¶
SQSMessageInvalid creates an error indicating an invalid SQS message.
func SQSMessageProcessingFailed ¶
SQSMessageProcessingFailed creates an error indicating SQS message processing failed.
func SQSMessageSendFailed ¶
SQSMessageSendFailed creates an error for SQS message send failures.
func SQSMessageTooLarge ¶
SQSMessageTooLarge creates an error indicating an SQS message exceeds size limit.
func SQSRetryExhausted ¶
SQSRetryExhausted creates an error indicating SQS message retry attempts were exhausted.
func SQSVisibilityTimeoutExceeded ¶
SQSVisibilityTimeoutExceeded creates an error indicating SQS message visibility timeout was exceeded.
func ScheduledTimeValidationFailed ¶
ScheduledTimeValidationFailed creates an error for invalid scheduled times.
func SearchIndexerCreateActorSearchIndex ¶
func SearchIndexerCreateActorSearchIndex() *AppError
SearchIndexerCreateActorSearchIndex creates an error indicating failed to create actor search index.
func SearchIndexerCreateSearchIndex ¶
func SearchIndexerCreateSearchIndex() *AppError
SearchIndexerCreateSearchIndex creates an error indicating failed to create search index.
func SearchIndexerExtractIndexableContent ¶
func SearchIndexerExtractIndexableContent() *AppError
SearchIndexerExtractIndexableContent creates an error indicating failed to extract indexable content.
func SearchIndexerPartialBatchFailure ¶
func SearchIndexerPartialBatchFailure() *AppError
SearchIndexerPartialBatchFailure creates an error indicating partial batch failure during search indexing.
func SearchIndexerStoreSearchIndex ¶
func SearchIndexerStoreSearchIndex() *AppError
SearchIndexerStoreSearchIndex creates an error indicating failed to store search index.
func SearchIndexerUnmarshalStreamImage ¶
func SearchIndexerUnmarshalStreamImage() *AppError
SearchIndexerUnmarshalStreamImage creates an error indicating failed to unmarshal stream image.
func SearchIndexingFailed ¶
SearchIndexingFailed creates an error indicating search indexing failed.
func SecretCreationFailed ¶
SecretCreationFailed creates an error indicating secret creation failed.
func SecretDeletionFailed ¶
SecretDeletionFailed creates an error indicating secret deletion failed.
func SecretRetrievalRetriesFailed ¶
SecretRetrievalRetriesFailed creates an error indicating secret retrieval failed after retries.
func SecretValueMarshalFailed ¶
SecretValueMarshalFailed creates an error indicating secret value marshalling failed.
func SecretValueNil ¶
func SecretValueNil() *AppError
SecretValueNil creates an error indicating secret value is nil.
func SecretValueUnmarshalFailed ¶
SecretValueUnmarshalFailed creates an error indicating secret value unmarshalling failed.
func SecretsManagerConnectionFailed ¶
SecretsManagerConnectionFailed creates an error indicating Secrets Manager connection failed.
func SecretsManagerError ¶
SecretsManagerError creates an error indicating a secrets manager error occurred.
func SecretsManagerNotAvailable ¶
func SecretsManagerNotAvailable() *AppError
SecretsManagerNotAvailable creates an error indicating secrets manager is not available.
func SecurityViolation ¶
SecurityViolation creates an error indicating a security violation was detected.
func ServiceInitializationFailed ¶
ServiceInitializationFailed creates an error indicating service initialization failed.
func ServiceInitializationFailedGeneric ¶
ServiceInitializationFailedGeneric creates an error indicating service initialization failed.
func ServiceNotAvailable ¶
ServiceNotAvailable creates an error when a service is not available.
func ServiceUnavailable ¶
ServiceUnavailable creates an error indicating a service is temporarily unavailable.
func SessionCannotBeExtended ¶
SessionCannotBeExtended creates an error indicating a session cannot be extended.
func SessionCreationFailed ¶
SessionCreationFailed creates an error indicating session creation failed.
func SessionDataDeserializationFailed ¶
SessionDataDeserializationFailed creates an error indicating session data deserialization failed.
func SessionDataSerializationFailed ¶
SessionDataSerializationFailed creates an error indicating session data serialization failed.
func SessionExpired ¶
func SessionExpired() *AppError
SessionExpired creates an error indicating a user session has expired.
func SessionExtensionDisabled ¶
func SessionExtensionDisabled() *AppError
SessionExtensionDisabled creates an error indicating session extension is disabled.
func SessionIDGenerationFailed ¶
SessionIDGenerationFailed creates an error indicating session ID generation failed.
func SessionIDMismatch ¶
func SessionIDMismatch() *AppError
SessionIDMismatch creates an error indicating session ID mismatch.
func SessionMaxLifetimeReached ¶
func SessionMaxLifetimeReached() *AppError
SessionMaxLifetimeReached creates an error indicating session max lifetime reached.
func SessionNotFound ¶
SessionNotFound creates an error indicating the specified session was not found.
func SessionSecurityCheckFailed ¶
SessionSecurityCheckFailed creates an error indicating session security check failed.
func SessionSecurityValidationFailed ¶
SessionSecurityValidationFailed creates an error indicating session security validation failed.
func SessionStorageFailed ¶
SessionStorageFailed creates an error indicating session storage failed.
func SessionUpdateFailed ¶
SessionUpdateFailed creates an error indicating session update failed.
func SignatureAddressMismatch ¶
func SignatureAddressMismatch() *AppError
SignatureAddressMismatch creates an error indicating signature address mismatch.
func SignatureExpired ¶
func SignatureExpired() *AppError
SignatureExpired creates an error indicating an HTTP signature has expired.
func SignatureInvalid ¶
SignatureInvalid creates an error indicating an invalid HTTP signature.
func SignatureMissing ¶
func SignatureMissing() *AppError
SignatureMissing creates an error indicating an HTTP signature is missing.
func SignatureVerificationFailed ¶
func SignatureVerificationFailed() *AppError
SignatureVerificationFailed creates an error indicating signature verification failed.
func SigningActorRetrievalFailed ¶
SigningActorRetrievalFailed creates an error indicating signing actor retrieval failed.
func SigningKeyInvalid ¶
SigningKeyInvalid creates an error indicating an invalid signing key.
func SigningKeyNotFound ¶
SigningKeyNotFound creates an error indicating a signing key was not found.
func StatusIndexerCountReplies ¶
func StatusIndexerCountReplies() *AppError
StatusIndexerCountReplies creates an error indicating failed to count replies.
func StatusIndexerNoNewImage ¶
func StatusIndexerNoNewImage() *AppError
StatusIndexerNoNewImage creates an error indicating no new image.
func StatusIndexerNoObjectData ¶
func StatusIndexerNoObjectData() *AppError
StatusIndexerNoObjectData creates an error indicating no object data.
func StatusIndexerPartialBatchFailure ¶
func StatusIndexerPartialBatchFailure() *AppError
StatusIndexerPartialBatchFailure creates an error indicating partial batch failure.
func StatusIndexerProcessStatusEvent ¶
func StatusIndexerProcessStatusEvent() *AppError
StatusIndexerProcessStatusEvent creates an error indicating failed to process status event.
func StatusIndexingFailed ¶
StatusIndexingFailed creates an error indicating status indexing failed.
func StatusInvalidVisibility ¶
StatusInvalidVisibility creates an error indicating invalid visibility setting.
func StatusLanguageInvalid ¶
StatusLanguageInvalid creates an error indicating invalid language code.
func StatusNotFound ¶
StatusNotFound creates an error indicating a status was not found.
func StatusSpoilerTextTooLong ¶
StatusSpoilerTextTooLong creates an error indicating spoiler text is too long.
func StatusTooManyMedia ¶
StatusTooManyMedia creates an error indicating too many media attachments.
func StorageActorNotFound ¶
StorageActorNotFound creates an error indicating an actor was not found.
func StorageFieldTooLong ¶
StorageFieldTooLong creates an error indicating a field exceeds maximum length.
func StorageFieldTooShort ¶
StorageFieldTooShort creates an error indicating a field is below minimum length.
func StorageQuotaExceeded ¶
StorageQuotaExceeded creates an error indicating storage quota was exceeded.
func StorageRequiredFieldMissing ¶
StorageRequiredFieldMissing creates an error indicating a required field is missing.
func StorageSessionNotFound ¶
StorageSessionNotFound creates an error indicating a session was not found.
func StorageTypeUnsupported ¶
StorageTypeUnsupported creates an error for unsupported storage types.
func StorageUserNotFound ¶
StorageUserNotFound creates an error indicating a user was not found.
func StreamNewImageMissing ¶
StreamNewImageMissing creates an error indicating a stream record is missing new image.
func StreamOldImageMissing ¶
StreamOldImageMissing creates an error indicating a stream record is missing old image for removal.
func StreamRecordInvalid ¶
StreamRecordInvalid creates an error indicating an invalid DynamoDB stream record.
func StreamRecordProcessingFailed ¶
StreamRecordProcessingFailed creates an error indicating stream record processing failed.
func StreamRouterFailed ¶
StreamRouterFailed creates an error indicating stream routing failed.
func StreamUnmarshalFailed ¶
StreamUnmarshalFailed creates an error indicating failed to unmarshal stream image.
func StreamingAuthenticationRequired ¶
func StreamingAuthenticationRequired() *AppError
StreamingAuthenticationRequired creates an error indicating authentication is required for stream.
func StreamingCircuitBreakerOpen ¶
StreamingCircuitBreakerOpen creates an error when circuit breaker prevents recovery.
func StreamingCommandExecutionFailed ¶
func StreamingCommandExecutionFailed() *AppError
StreamingCommandExecutionFailed creates an error indicating command execution failed.
func StreamingConnectionClosed ¶
StreamingConnectionClosed creates an error when streaming connection is closed unexpectedly.
func StreamingConnectionNotFound ¶
func StreamingConnectionNotFound() *AppError
StreamingConnectionNotFound creates an error indicating streaming connection was not found.
func StreamingConnectionTimeout ¶
StreamingConnectionTimeout creates an error when streaming connection times out.
func StreamingEventProcessingFailed ¶
StreamingEventProcessingFailed creates an error indicating streaming event processing failed.
func StreamingFailedToSubscribe ¶
func StreamingFailedToSubscribe() *AppError
StreamingFailedToSubscribe creates an error indicating stream subscription failed.
func StreamingFailedToUnsubscribe ¶
func StreamingFailedToUnsubscribe() *AppError
StreamingFailedToUnsubscribe creates an error indicating stream unsubscription failed.
func StreamingHealthCheckFailed ¶
StreamingHealthCheckFailed creates an error when health check fails.
func StreamingInvalidCommandFormat ¶
func StreamingInvalidCommandFormat() *AppError
StreamingInvalidCommandFormat creates an error indicating invalid command format.
func StreamingInvalidMessageFormat ¶
func StreamingInvalidMessageFormat() *AppError
StreamingInvalidMessageFormat creates an error indicating streaming message format is invalid.
func StreamingInvalidStream ¶
func StreamingInvalidStream() *AppError
StreamingInvalidStream creates an error indicating an invalid stream.
func StreamingRecoveryFailed ¶
StreamingRecoveryFailed creates an error when streaming connection recovery fails.
func StreamingSyncFailed ¶
StreamingSyncFailed creates an error when connection synchronization fails.
func StreamingUnknownMessageType ¶
func StreamingUnknownMessageType() *AppError
StreamingUnknownMessageType creates an error indicating an unknown streaming message type.
func StreamingUnknownRoute ¶
func StreamingUnknownRoute() *AppError
StreamingUnknownRoute creates an error indicating an unknown WebSocket route.
func SystemActorKeyRetrievalFailed ¶
SystemActorKeyRetrievalFailed creates an error indicating system actor private key retrieval failed.
func SystemActorKeyRotationFailed ¶
SystemActorKeyRotationFailed creates an error indicating system actor key rotation failed.
func TamperingDetected ¶
TamperingDetected creates an error indicating tampering was detected.
func TargetCollectionMissing ¶
func TargetCollectionMissing() *AppError
TargetCollectionMissing creates an error when a target collection is missing.
func TargetIDExtractionFailed ¶
TargetIDExtractionFailed creates an error for target ID extraction failures.
func TimelineEntriesCreationFailed ¶
TimelineEntriesCreationFailed creates an error indicating timeline entries creation failed.
func TimelineEntriesWriteFailed ¶
TimelineEntriesWriteFailed creates an error indicating timeline entries write failed.
func TimelineOrderInvalid ¶
TimelineOrderInvalid creates an error for invalid timeline orders.
func TimelineRemovalFailed ¶
TimelineRemovalFailed creates an error indicating timeline removal failed.
func TimelineRequiresField ¶
TimelineRequiresField creates an error indicating a timeline requires a specific field.
func TimeoutError ¶
TimeoutError creates an error indicating an operation timed out.
func TimestampInFuture ¶
func TimestampInFuture() *AppError
TimestampInFuture creates an error indicating timestamp cannot be in the future.
func TimestampInvalidFormat ¶
TimestampInvalidFormat creates an error indicating invalid timestamp format.
func TimestampTooOld ¶
TimestampTooOld creates an error indicating timestamp is too old.
func TokenExpired ¶
func TokenExpired() *AppError
TokenExpired creates an error indicating an authentication token has expired.
func TokenGenerationFailed ¶
TokenGenerationFailed creates an error indicating token generation failed.
func TokenInvalid ¶
TokenInvalid creates an error indicating an authentication token is invalid.
func TokenNotFound ¶
func TokenNotFound() *AppError
TokenNotFound creates an error indicating a token was not found.
func TokenReuse ¶
func TokenReuse() *AppError
TokenReuse creates an error indicating token reuse was detected, which is a potential security breach.
func TokenRevoked ¶
func TokenRevoked() *AppError
TokenRevoked creates an error indicating an authentication token has been revoked.
func TokenTooOld ¶
func TokenTooOld() *AppError
TokenTooOld creates an error indicating token is too old.
func TokenVersionMismatch ¶
func TokenVersionMismatch() *AppError
TokenVersionMismatch creates an error indicating token version mismatch.
func TombstoneStatusCheckFailed ¶
TombstoneStatusCheckFailed creates an error for tombstone status check failures.
func TooManyItems ¶
TooManyItems creates an error indicating too many items exist.
func TooManyRequests ¶
TooManyRequests creates an error indicating too many requests for a resource.
func TransactionConflict ¶
TransactionConflict creates an error indicating a transaction conflict was detected.
func TransactionFailed ¶
TransactionFailed creates an error indicating a database transaction failed.
func TransformFunctionNotSet ¶
func TransformFunctionNotSet() *AppError
TransformFunctionNotSet creates an error when transform function is not configured.
func TransformItemFailed ¶
TransformItemFailed creates an error when item transformation fails.
func TrendAggregationFailed ¶
TrendAggregationFailed creates an error indicating trend aggregation failed.
func TrendAggregatorHashtagRetrieval ¶
func TrendAggregatorHashtagRetrieval() *AppError
TrendAggregatorHashtagRetrieval creates an error indicating failed to get recent hashtags.
func TrendAggregatorLinkRetrieval ¶
func TrendAggregatorLinkRetrieval() *AppError
TrendAggregatorLinkRetrieval creates an error indicating failed to get recent links.
func TrendAggregatorStatusRetrieval ¶
func TrendAggregatorStatusRetrieval() *AppError
TrendAggregatorStatusRetrieval creates an error indicating failed to get recent statuses.
func TrusteeActorIDRequired ¶
func TrusteeActorIDRequired() *AppError
TrusteeActorIDRequired creates an error indicating trustee actor ID is required.
func TrusteeAlreadyVoted ¶
func TrusteeAlreadyVoted() *AppError
TrusteeAlreadyVoted creates an error indicating a trustee has already voted.
func TrusteeDeletionFailed ¶
TrusteeDeletionFailed creates an error indicating trustee deletion failed.
func TrusteeRetrievalFailed ¶
TrusteeRetrievalFailed creates an error indicating trustee retrieval failed.
func TrusteeStorageFailed ¶
TrusteeStorageFailed creates an error indicating trustee storage failed.
func URLHostNotAllowed ¶
URLHostNotAllowed creates an error indicating URL host not allowed.
func URLInvalid ¶
URLInvalid creates an error indicating invalid URL format.
func URLSchemeNotAllowed ¶
URLSchemeNotAllowed creates an error indicating URL scheme not allowed.
func Unauthorized ¶
Unauthorized creates an unauthorized error
func UndoActivityInvalid ¶
UndoActivityInvalid creates an error indicating an invalid undo activity.
func UndoObjectNotFound ¶
UndoObjectNotFound creates an error indicating an undo target activity was not found.
func UndoUnauthorized ¶
UndoUnauthorized creates an error indicating unauthorized access to undo an activity.
func UnexpectedSigningMethod ¶
func UnexpectedSigningMethod() *AppError
UnexpectedSigningMethod creates an error indicating unexpected JWT signing method.
func UniqueConstraintViolated ¶
UniqueConstraintViolated creates an error indicating a unique constraint was violated.
func UnmarshalingFailed ¶
UnmarshalingFailed creates an error indicating data unmarshaling failed.
func UnsupportedPrivateKeyType ¶
func UnsupportedPrivateKeyType() *AppError
UnsupportedPrivateKeyType creates an error indicating unsupported private key type.
func UnsupportedTimelineType ¶
UnsupportedTimelineType creates an error for unsupported timeline types.
func UpdateActivityInvalid ¶
UpdateActivityInvalid creates an error indicating an invalid update activity.
func UpdateFailed ¶
UpdateFailed creates an error indicating item update failed.
func UpdateObjectNotFound ¶
UpdateObjectNotFound creates an error indicating an update target object was not found.
func UpdateUnauthorized ¶
UpdateUnauthorized creates an error indicating unauthorized access to update an object.
func UploadLimitsInvalid ¶
func UploadLimitsInvalid() *AppError
UploadLimitsInvalid creates an error for invalid upload limits.
func UserAlreadyExists ¶
UserAlreadyExists creates an error indicating a user already exists.
func UserDevicesRetrievalFailed ¶
UserDevicesRetrievalFailed creates an error indicating user devices retrieval failed.
func UserIDRequired ¶
func UserIDRequired() *AppError
UserIDRequired creates an error when user ID is required.
func UserNotApproved ¶
UserNotApproved creates an error indicating the user account is not approved.
func UserNotFound ¶
UserNotFound creates an error indicating the specified user was not found.
func UserRetrievalFailed ¶
UserRetrievalFailed creates an error indicating user retrieval failed.
func UserSessionsRetrievalFailed ¶
UserSessionsRetrievalFailed creates an error indicating user sessions retrieval failed.
func UserSuspended ¶
UserSuspended creates an error indicating the user account is suspended.
func UsernameConsecutiveUnderscores ¶
func UsernameConsecutiveUnderscores() *AppError
UsernameConsecutiveUnderscores creates an error indicating username cannot contain consecutive underscores.
func UsernameEmpty ¶
func UsernameEmpty() *AppError
UsernameEmpty creates an error indicating username cannot be empty.
func UsernameExtractionFailed ¶
UsernameExtractionFailed creates an error for username extraction failures.
func UsernameInvalidCharacters ¶
func UsernameInvalidCharacters() *AppError
UsernameInvalidCharacters creates an error indicating username contains invalid characters.
func UsernameInvalidFormat ¶
func UsernameInvalidFormat() *AppError
UsernameInvalidFormat creates an error indicating username format is invalid.
func UsernameInvalidLength ¶
UsernameInvalidLength creates an error indicating username length is invalid.
func UsernameStartsOrEndsWithUnderscore ¶
func UsernameStartsOrEndsWithUnderscore() *AppError
UsernameStartsOrEndsWithUnderscore creates an error indicating username cannot start or end with underscore.
func UsernameTaken ¶
UsernameTaken creates an error when a username is already taken.
func ValidationFailed ¶
ValidationFailed creates a validation error
func ValidationFailedWithField ¶
ValidationFailedWithField creates an error when general validation fails.
func ValueOutOfRange ¶
ValueOutOfRange creates an error indicating a value is outside the allowed range.
func VideoDurationInvalid ¶
func VideoDurationInvalid() *AppError
VideoDurationInvalid creates an error for invalid video duration.
func VideoFileTooLarge ¶
VideoFileTooLarge creates an error indicating video file size exceeds limit.
func VideoInvalidFormat ¶
VideoInvalidFormat creates an error indicating invalid video format.
func WalletAddressMismatch ¶
func WalletAddressMismatch() *AppError
WalletAddressMismatch creates an error indicating a wallet address mismatch.
func WalletAlreadyLinked ¶
func WalletAlreadyLinked() *AppError
WalletAlreadyLinked creates an error indicating a wallet is already linked to another account.
func WalletChallengeExpired ¶
func WalletChallengeExpired() *AppError
WalletChallengeExpired creates an error indicating a wallet authentication challenge has expired.
func WalletCheckFailed ¶
WalletCheckFailed creates an error indicating wallet check failed.
func WalletDeletionFailed ¶
WalletDeletionFailed creates an error indicating wallet deletion failed.
func WalletRetrievalFailed ¶
WalletRetrievalFailed creates an error indicating wallet retrieval failed.
func WalletSignatureInvalid ¶
WalletSignatureInvalid creates an error indicating a wallet signature is invalid.
func WalletStorageFailed ¶
WalletStorageFailed creates an error indicating wallet storage failed.
func WebAuthnChallengeStorageFailed ¶
WebAuthnChallengeStorageFailed creates an error indicating WebAuthn challenge storage failed.
func WebAuthnLoginFailed ¶
WebAuthnLoginFailed creates an error indicating WebAuthn authentication failed.
func WebAuthnNotConfigured ¶
func WebAuthnNotConfigured() *AppError
WebAuthnNotConfigured creates an error indicating WebAuthn is not configured.
func WebAuthnRegistrationFailed ¶
WebAuthnRegistrationFailed creates an error indicating WebAuthn registration failed.
func WebAuthnServiceInitFailed ¶
WebAuthnServiceInitFailed creates an error indicating WebAuthn service initialization failed.
func WebFingerFailed ¶
WebFingerFailed creates an error indicating WebFinger lookup failed.
func WebFingerNotFound ¶
WebFingerNotFound creates an error indicating a WebFinger resource was not found.
func WebSocketCostAggregationFailed ¶
WebSocketCostAggregationFailed creates an error indicating WebSocket cost aggregation failed.
func WebSocketCostAllAlertMethodsFailed ¶
func WebSocketCostAllAlertMethodsFailed() *AppError
WebSocketCostAllAlertMethodsFailed creates an error indicating all alert methods failed.
func WebSocketCostCreateWebhookRequest ¶
func WebSocketCostCreateWebhookRequest() *AppError
WebSocketCostCreateWebhookRequest creates an error indicating webhook request creation failed.
func WebSocketCostGetHighCostUsers ¶
func WebSocketCostGetHighCostUsers() *AppError
WebSocketCostGetHighCostUsers creates an error indicating failed to get high cost users.
func WebSocketCostGetIdleConnections ¶
func WebSocketCostGetIdleConnections() *AppError
WebSocketCostGetIdleConnections creates an error indicating failed to get idle connections.
func WebSocketCostGetStaleConnections ¶
func WebSocketCostGetStaleConnections() *AppError
WebSocketCostGetStaleConnections creates an error indicating failed to get stale connections.
func WebSocketCostMarshalAlertMessage ¶
func WebSocketCostMarshalAlertMessage() *AppError
WebSocketCostMarshalAlertMessage creates an error indicating alert message marshaling failed.
func WebSocketCostPublishSNSMessage ¶
func WebSocketCostPublishSNSMessage() *AppError
WebSocketCostPublishSNSMessage creates an error indicating SNS message publishing failed.
func WebSocketCostTrackIdleConnections ¶
func WebSocketCostTrackIdleConnections() *AppError
WebSocketCostTrackIdleConnections creates an error indicating failed to track idle connections.
func WebSocketCostWebhookNon2xxStatus ¶
func WebSocketCostWebhookNon2xxStatus() *AppError
WebSocketCostWebhookNon2xxStatus creates an error indicating webhook returned non-2xx status.
func WebSocketCostWebhookRequestFailed ¶
func WebSocketCostWebhookRequestFailed() *AppError
WebSocketCostWebhookRequestFailed creates an error indicating webhook request failed.
func WorkflowInvalidState ¶
WorkflowInvalidState creates an error indicating a workflow is in an invalid state.
func WorkflowStepFailed ¶
WorkflowStepFailed creates an error indicating a workflow step failed.
func WorkflowTimeout ¶
WorkflowTimeout creates an error indicating workflow execution timed out.
func WrapError ¶
func WrapError(err error, code ErrorCode, category ErrorCategory, message string) *AppError
WrapError wraps an existing error as an AppError
func WrapErrorf ¶
func WrapErrorf(err error, code ErrorCode, category ErrorCategory, format string, args ...interface{}) *AppError
WrapErrorf wraps an existing error as an AppError with formatted message
func WrapRemoteError ¶
WrapRemoteError wraps an error with remote operation context and makes it retryable.
func WrapWithContext ¶
WrapWithContext wraps an error with additional context information.
func WrapWithOperation ¶
WrapWithOperation wraps an error with operation metadata.
func WrapWithResource ¶
WrapWithResource wraps an error with resource metadata.
func (*AppError) AsNonRetryable ¶
AsNonRetryable marks this error as non-retryable
func (*AppError) AsRetryable ¶
AsRetryable marks this error as retryable
func (*AppError) Clone ¶
Clone creates a shallow copy of the error, including a copy of Metadata map, so callers can safely add context without mutating shared instances.
func (*AppError) WithInternalError ¶
WithInternalError wraps another error as the internal cause
func (*AppError) WithInternalMessage ¶
WithInternalMessage adds or updates the internal message
func (*AppError) WithMetadata ¶
WithMetadata adds metadata to the error
type ErrorCategory ¶
type ErrorCategory string
ErrorCategory represents the domain/category of an error
const ( // CategoryAuth represents authentication and authorization errors CategoryAuth ErrorCategory = "AUTH" // CategoryStorage represents database and storage errors CategoryStorage ErrorCategory = "STORAGE" // CategoryFederation represents ActivityPub federation errors CategoryFederation ErrorCategory = "FEDERATION" // CategoryValidation represents input validation errors CategoryValidation ErrorCategory = "VALIDATION" // CategoryAPI represents API-specific errors (REST/GraphQL) CategoryAPI ErrorCategory = "API" // CategoryLambda represents AWS Lambda-specific errors CategoryLambda ErrorCategory = "LAMBDA" // CategoryBusiness represents business logic errors CategoryBusiness ErrorCategory = "BUSINESS" // CategoryMedia represents media processing errors CategoryMedia ErrorCategory = "MEDIA" // CategoryStreaming represents WebSocket streaming errors CategoryStreaming ErrorCategory = "STREAMING" // CategoryModeration represents content moderation errors CategoryModeration ErrorCategory = "MODERATION" // CategoryInternal represents internal system errors CategoryInternal ErrorCategory = "INTERNAL" // CategoryExternal represents external service errors CategoryExternal ErrorCategory = "EXTERNAL" )
func AllCategories ¶
func AllCategories() []ErrorCategory
AllCategories returns all valid error categories
func GetErrorCategory ¶
func GetErrorCategory(err error) ErrorCategory
GetErrorCategory extracts the error category from an error
func (ErrorCategory) IsValid ¶
func (c ErrorCategory) IsValid() bool
IsValid checks if the error category is valid
func (ErrorCategory) String ¶
func (c ErrorCategory) String() string
String returns the string representation of the error category
type ErrorCode ¶
type ErrorCode string
ErrorCode represents standardized error codes across the application
const ( // Generic errors CodeNotFound ErrorCode = "NOT_FOUND" CodeAlreadyExists ErrorCode = "ALREADY_EXISTS" CodeInvalidInput ErrorCode = "INVALID_INPUT" CodeForbidden ErrorCode = "FORBIDDEN" CodeTimeout ErrorCode = "TIMEOUT" CodeRateLimited ErrorCode = "RATE_LIMITED" CodeInternal ErrorCode = "INTERNAL_ERROR" CodeGone ErrorCode = "GONE" CodeUnprocessableEntity ErrorCode = "UNPROCESSABLE_ENTITY" )
Common error codes
const ( CodeAuthFailed ErrorCode = "AUTH_FAILED" CodeTokenExpired ErrorCode = "TOKEN_EXPIRED" CodeTokenInvalid ErrorCode = "TOKEN_INVALID" CodeTokenRevoked ErrorCode = "TOKEN_REVOKED" CodeTokenReuse ErrorCode = "TOKEN_REUSE" CodeSessionExpired ErrorCode = "SESSION_EXPIRED" CodeSessionInvalid ErrorCode = "SESSION_INVALID" CodeInsufficientScope ErrorCode = "INSUFFICIENT_SCOPE" CodeAccountSuspended ErrorCode = "ACCOUNT_SUSPENDED" CodeInvalidPassword ErrorCode = "INVALID_PASSWORD" )
Authentication and authorization error codes
const ( CodeDatabaseConnection ErrorCode = "DATABASE_CONNECTION_FAILED" CodeQueryFailed ErrorCode = "QUERY_FAILED" CodeTransactionFailed ErrorCode = "TRANSACTION_FAILED" CodeIndexError ErrorCode = "INDEX_ERROR" CodeConcurrencyError ErrorCode = "CONCURRENCY_ERROR" CodeConstraintViolated ErrorCode = "CONSTRAINT_VIOLATED" CodeStorageQuotaExceeded ErrorCode = "STORAGE_QUOTA_EXCEEDED" )
Storage and database error codes
const ( CodeActivityParsingFailed ErrorCode = "ACTIVITY_PARSING_FAILED" CodeSignatureVerifyFailed ErrorCode = "SIGNATURE_VERIFICATION_FAILED" CodeRemoteFetchFailed ErrorCode = "REMOTE_FETCH_FAILED" CodeDeliveryFailed ErrorCode = "DELIVERY_FAILED" CodeInboxProcessingFailed ErrorCode = "INBOX_PROCESSING_FAILED" CodeOutboxProcessingFailed ErrorCode = "OUTBOX_PROCESSING_FAILED" CodeUnsupportedActivityType ErrorCode = "UNSUPPORTED_ACTIVITY_TYPE" CodeFederationBlocked ErrorCode = "FEDERATION_BLOCKED" CodeActorNotFound ErrorCode = "ACTOR_NOT_FOUND" CodeInvalidActorURI ErrorCode = "INVALID_ACTOR_URI" )
Federation and ActivityPub error codes
const ( CodeValidationFailed ErrorCode = "VALIDATION_FAILED" CodeRequiredFieldMissing ErrorCode = "REQUIRED_FIELD_MISSING" CodeFieldTooLong ErrorCode = "FIELD_TOO_LONG" CodeFieldTooShort ErrorCode = "FIELD_TOO_SHORT" CodeInvalidFormat ErrorCode = "INVALID_FORMAT" CodeInvalidCharacters ErrorCode = "INVALID_CHARACTERS" CodeValueOutOfRange ErrorCode = "VALUE_OUT_OF_RANGE" )
Validation error codes
const ( CodeBadRequest ErrorCode = "BAD_REQUEST" CodeMethodNotAllowed ErrorCode = "METHOD_NOT_ALLOWED" CodeContentTooLarge ErrorCode = "CONTENT_TOO_LARGE" CodeAPIUnsupportedMediaType ErrorCode = "UNSUPPORTED_MEDIA_TYPE_API" CodeAPIVersionNotSupported ErrorCode = "API_VERSION_NOT_SUPPORTED" CodeMissingHeader ErrorCode = "MISSING_HEADER" CodeInvalidHeader ErrorCode = "INVALID_HEADER" )
API error codes
const ( CodeLambdaTimeout ErrorCode = "LAMBDA_TIMEOUT" CodeLambdaColdStart ErrorCode = "LAMBDA_COLD_START" CodeLambdaMemoryExceeded ErrorCode = "LAMBDA_MEMORY_EXCEEDED" CodeSQSProcessingFailed ErrorCode = "SQS_PROCESSING_FAILED" CodeEventProcessingFailed ErrorCode = "EVENT_PROCESSING_FAILED" CodeDLQRetryExhausted ErrorCode = "DLQ_RETRY_EXHAUSTED" )
Lambda-specific error codes
const ( CodeMediaTooLarge ErrorCode = "MEDIA_TOO_LARGE" CodeUnsupportedMediaType ErrorCode = "UNSUPPORTED_MEDIA_TYPE" CodeMediaProcessingFailed ErrorCode = "MEDIA_PROCESSING_FAILED" CodeTranscodingFailed ErrorCode = "TRANSCODING_FAILED" CodeThumbnailFailed ErrorCode = "THUMBNAIL_FAILED" CodeMediaUploadFailed ErrorCode = "MEDIA_UPLOAD_FAILED" )
Media processing error codes
const ( CodeContentBlocked ErrorCode = "CONTENT_BLOCKED" CodeModerationFailed ErrorCode = "MODERATION_FAILED" CodePatternMatchFailed ErrorCode = "PATTERN_MATCH_FAILED" CodeContentFlagged ErrorCode = "CONTENT_FLAGGED" CodeSpamDetected ErrorCode = "SPAM_DETECTED" )
Moderation error codes
const ( CodeConnectionClosed ErrorCode = "CONNECTION_CLOSED" CodeSubscriptionFailed ErrorCode = "SUBSCRIPTION_FAILED" CodeStreamingTimeout ErrorCode = "STREAMING_TIMEOUT" CodeMessageTooLarge ErrorCode = "MESSAGE_TOO_LARGE" CodeTooManyConnections ErrorCode = "TOO_MANY_CONNECTIONS" )
Streaming error codes
const ( CodeOperationNotAllowed ErrorCode = "OPERATION_NOT_ALLOWED" CodeInvalidStateTransition ErrorCode = "INVALID_STATE_TRANSITION" CodeQuotaExceeded ErrorCode = "QUOTA_EXCEEDED" CodeConflict ErrorCode = "CONFLICT" CodeDependencyNotMet ErrorCode = "DEPENDENCY_NOT_MET" CodeBusinessRuleViolated ErrorCode = "BUSINESS_RULE_VIOLATED" )
Business logic error codes
const ( CodeExternalServiceTimeout ErrorCode = "EXTERNAL_SERVICE_TIMEOUT" CodeExternalAPIError ErrorCode = "EXTERNAL_API_ERROR" CodeThirdPartyIntegrationFailed ErrorCode = "THIRD_PARTY_INTEGRATION_FAILED" )
External service error codes
func GetErrorCode ¶
GetErrorCode extracts the error code from an error
func (ErrorCode) GetHTTPStatusCode ¶
GetHTTPStatusCode returns the appropriate HTTP status code for the error code