Rocky_Mountain_Vending/.pnpm-store/v10/files/02/b45f173fcde74a502784f64430da8f73897a970a85cbe601b3c912cb5739d6fc52b921758c8cfad35e7335172fe7e5c6f70a9b12c90d4abc23b7ec0c783043
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

45 lines
1.2 KiB
Text

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {LighthouseError} from '../lib/lh-error.js';
import {TraceProcessor} from '../lib/tracehouse/trace-processor.js';
// TraceProcessor throws generic errors, but we'd like our special localized and code-specific LighthouseError
// objects to be thrown instead.
class LHTraceProcessor extends TraceProcessor {
/**
* @return {Error}
*/
static createNoNavstartError() {
return new LighthouseError(LighthouseError.errors.NO_NAVSTART);
}
/**
* This isn't currently used, but will be when the time origin of trace processing is changed.
* @see {TraceProcessor.computeTimeOrigin}
* @see https://github.com/GoogleChrome/lighthouse/pull/11253#discussion_r507985527
* @return {Error}
*/
static createNoResourceSendRequestError() {
return new LighthouseError(LighthouseError.errors.NO_RESOURCE_REQUEST);
}
/**
* @return {Error}
*/
static createNoTracingStartedError() {
return new LighthouseError(LighthouseError.errors.NO_TRACING_STARTED);
}
/**
* @return {Error}
*/
static createNoFirstContentfulPaintError() {
return new LighthouseError(LighthouseError.errors.NO_FCP);
}
}
export default LHTraceProcessor;