OxL Справочник OxL
РусскийEnglish

data AccessDenied

The policy of the callee refuses the caller (§13). One of the alternatives of NetError.

Example:

oxl✓ проверяется в CI
fn main() io {
  let e: NetError = AccessDenied{}
  match e {
    AccessDenied _ => print("denied")
    _ => print("other")
  }
}
Вывод
denied
@error pub(api) data AccessDenied

С версии. 1.0.0-beta

Определено в: std/core/types.oxl:1345

См. также