UNPKG

bpfcc

Version:

Frontend / bindings for BPF Compiler Collection (BCC)

16 lines (15 loc) 485 B
export declare class BCCError extends Error { code: number | Code; constructor(code: number | Code, message: string); } export declare enum Code { /** Not an error, indicates success. */ OK = 0, /** For any error that is not covered in the existing codes. */ UNKNOWN = 1, INVALID_ARGUMENT = 2, PERMISSION_DENIED = 3, /** For any error that was raised when making syscalls. */ SYSTEM = 4 } export declare function checkStatus(status: any): void;