Skip to main content

problem_from_catalog

Macro problem_from_catalog 

Source
macro_rules! problem_from_catalog {
    ("gts.hx.core.errors.err.v1~hx.odata.errors.invalid_filter.v1") => { ... };
    ("gts.hx.core.errors.err.v1~hx.odata.errors.invalid_orderby.v1") => { ... };
    ("gts.hx.core.errors.err.v1~hx.odata.errors.invalid_cursor.v1") => { ... };
    ("gts.hx.core.errors.err.v1~hx.odata.errors.internal.v1") => { ... };
    ("gts.hx.core.errors.err.v1~hx.odata.errors.invalid_filter.v1", $detail:expr) => { ... };
    ("gts.hx.core.errors.err.v1~hx.odata.errors.invalid_orderby.v1", $detail:expr) => { ... };
    ("gts.hx.core.errors.err.v1~hx.odata.errors.invalid_cursor.v1", $detail:expr) => { ... };
    ("gts.hx.core.errors.err.v1~hx.odata.errors.internal.v1", $detail:expr) => { ... };
    ($unknown:literal) => { ... };
    ($unknown:literal, $detail:expr) => { ... };
}
Expand description

Macro to create a Problem from a literal error code (compile-time validated)