From 5e31fa33c3b5cf726a57a063b8e7a070869250fe Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 19 May 2026 21:46:01 +0900 Subject: fix(compile): fix more random compile errors Co-Authored-By: Claude Opus 4.7 (1M context) --- crates/shirabe/src/downloader/transport_exception.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crates/shirabe/src/downloader/transport_exception.rs') diff --git a/crates/shirabe/src/downloader/transport_exception.rs b/crates/shirabe/src/downloader/transport_exception.rs index 382da01..9d5b352 100644 --- a/crates/shirabe/src/downloader/transport_exception.rs +++ b/crates/shirabe/src/downloader/transport_exception.rs @@ -24,6 +24,12 @@ impl TransportException { } } + /// PHP exposes ($message, $code = 0) — alias of `new` used at call sites where the + /// status/exception code is provided up-front. + pub fn new_with_code(message: String, code: i64) -> Self { + Self::new(message, code) + } + pub fn get_code(&self) -> i64 { self.code } -- cgit v1.3.1