eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\ExceptionConversion::loadRole PHP Method

loadRole() public method

Loads a specified role by $roleId.
public loadRole ( mixed $roleId, integer $status = Role::STATUS_DEFINED ) : array
$roleId mixed
$status integer One of Role::STATUS_DEFINED|Role::STATUS_DRAFT
return array
    public function loadRole($roleId, $status = Role::STATUS_DEFINED)
    {
        try {
            return $this->innerGateway->loadRole($roleId, $status);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }