OxL Reference

data AccessDenied

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

Example:

oxl✓ checked in CI
fn main() io {
  let e: NetError = AccessDenied{}
  match e {
    AccessDenied _ => print("denied")
    _ => print("other")
  }
}
Output
denied
@error pub(api) data AccessDenied

Since. 1.0.0-beta

Defined in: std/core/types.oxl:1345

See also