Library/Bullhorn/FastRest/Api/Controllers/Base.php
protected function handleAclError(AclException $e) {
        if(!empty($e->getMessage())) {
            $this->addError(new Exception($e->getMessage(), 401));
        }
        $entity = $e->getEntity();
        if(!is_null($entity)) {
            foreach ($entity->getMessages() as $message) {
                $this->addError(new Exception($message->getMessage(), 401));
            }
        }
    }
protected function handleAclError(AclException $e) {
        if(!empty($e->getMessage())) {
            $this->addError(new Exception($e->getMessage(), 401));
        }
        $entity = $e->getEntity();
        if(!is_null($entity)) {
            foreach ($entity->getMessages() as $message) {
                $this->addError(new Exception($message->getMessage(), 401));
            }
        }
    }
protected function handleAclError ( AclException $ e ) { if ( ! empty ( $ e -> getMessage ( ) ) ) { $ this -> addError ( new Exception ( $ e -> getMessage ( ) , 401 ) ) ; } $ entity = $ e -> getEntity ( ) ; if ( ! is_null ( $ entity ) ) { foreach ( $ entity -> getMessages ( ) as $ message ) { $ this -> addError ( new Exception ( $ message -> getMessage ( ) , 401 ) ) ; } } }
Handles exceptions from acl

@param AclException $e

@return void
Handles exceptions from acl