{"record":{"id":"84222f94574488de","repo":"oven-sh/bun","slug":"unexpected","errorCode":null,"errorMessage":"Unexpected","messagePattern":"Unexpected","errorType":"error_code","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/bun_core/error.rs","lineNumber":9,"sourceCode":"#[derive(Debug, Clone, Copy, PartialEq, Eq, thiserror::Error)]\npub enum Error {\n    #[error(\"EndOfStream\")]\n    EndOfStream,\n    #[error(\"StreamTooLong\")]\n    StreamTooLong,\n    #[error(\"FmtError\")]\n    FmtError,\n    #[error(\"Unexpected\")]\n    Unexpected,\n    #[error(\"InvalidByteSequence\")]\n    InvalidByteSequence,\n    #[error(\"StringTooLong\")]\n    StringTooLong,\n    #[error(\"InvalidCharacter\")]\n    InvalidCharacter,\n    // errno-category names kept local (bun_core cannot depend on bun_errno):\n    #[error(\"NoSpaceLeft\")]\n    NoSpaceLeft,\n    #[error(\"NameTooLong\")]\n    NameTooLong,\n    #[error(\"FileNotFound\")]\n    FileNotFound,\n    #[error(\"AccessDenied\")]\n    AccessDenied,\n    #[error(\"WriteFailed\")]\n    WriteFailed,","sourceCodeStart":1,"sourceCodeEnd":27,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/bun_core/error.rs#L1-L27","documentation":"Catch-all sentinel variant of the bun_core generic Error enum: an operation failed in a way that has no more specific variant in this enum. It marks unclassifiable failures at bun_core call sites; consumers match on the variant name rather than parsing the message.","triggerScenarios":"Thrown at src/bun_core/error.rs:9 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the call site that surfaced the error for violated invariants","Add a more specific error variant if this path recurs"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","contentChangedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}