impl<'r, Id> FromFormValue<'r> for InstanceAccess<'r, Id>
where Id: AccessId, Fatal: From<Id::Error>
{
- type Error = OER;
- #[throws(OER)]
+ type Error = FER;
+ #[throws(FER)]
fn from_form_value(param: &'r RawStr) -> Self {
let token = RawTokenVal::from_str(param.as_str());
let i = InstanceAccessDetails::from_token(token)?;
$formdef
#[post($path, format="json", data="<form>")]
- #[throws(OER)]
+ #[throws(FER)]
fn $fn(form: Json<ApiPiece<$form>>)
-> impl response::Responder<'static> {
api_piece_op(form)?
pub use crate::api::{FatalErrorResponse};
pub use crate::cmdlistener::*;
-pub type OER = FatalErrorResponse; // xxx rename this alias
+pub type FER = FatalErrorResponse;
use rocket::fairing;
use rocket::response::Content;
movehist_len_max: usize,
}
#[get("/")]
-#[throws(OER)]
+#[throws(FER)]
fn loading_p(ia: PlayerQueryString) -> Template {
loading(None, ia)?
}
#[get("/<layout>")]
-#[throws(OER)]
+#[throws(FER)]
fn loading_l(layout: Parse<AbbrevPresentationLayout>, ia: PlayerQueryString)
-> Template {
loading(Some((layout.0).0), ia)?
}
#[get("/_/updates?<ctoken>&<gen>")]
-#[throws(OER)]
+#[throws(FER)]
fn updates<'r>(ctoken: InstanceAccess<ClientId>, gen: u64,
cors: rocket_cors::Guard<'r>)
-> impl response::Responder<'r> {
ptoken: RawToken,
}
#[post("/_/session/<layout>", format="json", data="<form>")]
-#[throws(OER)]
+#[throws(FER)]
fn session(form: Json<SessionForm>,
layout: Option<Parse<PresentationLayout>>)
-> Template {