Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

1.0 KB
Raw Blame
export class DependencyUnavailableError extends Error {
    constructor(message: string, dependencyName: string, error: Error) {
        super(message)
        this.name = 'DependencyUnavailableError'
        this.dependencyName = dependencyName
        this.error = error
    }
    readonly dependencyName: string
    readonly error: Error
    readonly isRetriable = true
}

export class MessageSizeTooLarge extends Error {
    constructor(message: string, error: Error) {
        super(message)
        this.name = 'MessageSizeTooLarge'
        this.error = error
    }
    readonly error: Error
    readonly isRetriable = false
}

export class RedisOperationError extends Error {
    constructor(message: string, error: Error, operation: string, logContext?: Record<string, any>) {
        super(message)
        this.name = 'RedisOperationError'
        this.error = error
        this.operation = operation
        this.logContext = logContext
    }
    readonly error: Error
    readonly logContext?: Record<string, any>
    readonly operation: string
}