Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
36 lines
1.5 KiB
Plaintext
36 lines
1.5 KiB
Plaintext
import { Client } from '../client';
|
|
import { Event, EventHint } from '../types-hoist/event';
|
|
import { Exception } from '../types-hoist/exception';
|
|
import { ParameterizedString } from '../types-hoist/parameterize';
|
|
import { SeverityLevel } from '../types-hoist/severity';
|
|
import { StackFrame } from '../types-hoist/stackframe';
|
|
import { StackParser } from '../types-hoist/stacktrace';
|
|
/**
|
|
* Extracts stack frames from the error.stack string
|
|
*/
|
|
export declare function parseStackFrames(stackParser: StackParser, error: Error): StackFrame[];
|
|
/**
|
|
* Enhances the error message with the hostname for better Sentry error reporting.
|
|
* This allows third-party packages to still match on the original error message,
|
|
* while Sentry gets the enhanced version with context.
|
|
*
|
|
* Only used internally
|
|
* @hidden
|
|
*/
|
|
export declare function _enhanceErrorWithSentryInfo<T extends Error>(error: T): string;
|
|
/**
|
|
* Extracts stack frames from the error and builds a Sentry Exception
|
|
*/
|
|
export declare function exceptionFromError(stackParser: StackParser, error: Error): Exception;
|
|
/**
|
|
* Builds and Event from a Exception
|
|
* @hidden
|
|
*/
|
|
export declare function eventFromUnknownInput(client: Client, stackParser: StackParser, exception: unknown, hint?: EventHint): Event;
|
|
/**
|
|
* Builds and Event from a Message
|
|
* @hidden
|
|
*/
|
|
export declare function eventFromMessage(stackParser: StackParser, message: ParameterizedString, level?: SeverityLevel, hint?: EventHint, attachStacktrace?: boolean): Event;
|
|
//# sourceMappingURL=eventbuilder.d.ts.map
|