---
title: "requestWithError:"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/beprocesscapability-7av05/requestwitherror:"
---

# requestWithError:

Requests a capability for the current process.

## Declaration

```occ
- (id<BEProcessCapabilityGrant>) requestWithError:(NSError **) error;
```

## Parameters

- `error`: A pointer to an error object that describes why the method failed, or nil if no error occurred. Pass nil to ignore the error.

## Discussion

Discussion This method returns the granted capability, if possible; otherwise, it returns nil and sets the argument error object.
