integrate ruma js_int errors into enum

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-08-10 19:18:22 +00:00
parent 5db816277b
commit 40d53563fc
3 changed files with 21 additions and 23 deletions

View file

@ -54,6 +54,10 @@ pub enum Error {
#[error(transparent)]
Json(#[from] serde_json::Error),
#[error(transparent)]
JsParseInt(#[from] ruma::JsParseIntError), // js_int re-export
#[error(transparent)]
JsTryFromInt(#[from] ruma::JsTryFromIntError), // js_int re-export
#[error(transparent)]
Path(#[from] axum::extract::rejection::PathRejection),
#[error("Regex error: {0}")]
Regex(#[from] regex::Error),