aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/downloader/transport_exception.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/downloader/transport_exception.rs')
-rw-r--r--crates/shirabe/src/downloader/transport_exception.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/shirabe/src/downloader/transport_exception.rs b/crates/shirabe/src/downloader/transport_exception.rs
index e4f04f3..382da01 100644
--- a/crates/shirabe/src/downloader/transport_exception.rs
+++ b/crates/shirabe/src/downloader/transport_exception.rs
@@ -24,6 +24,14 @@ impl TransportException {
}
}
+ pub fn get_code(&self) -> i64 {
+ self.code
+ }
+
+ pub fn get_message(&self) -> &str {
+ &self.message
+ }
+
pub fn set_headers(&mut self, headers: Vec<String>) {
self.headers = Some(headers);
}