Library/Bullhorn/FastRest/Api/Controllers/Base.php
protected function handleValidationError(ValidationException $e, $errorCode = 409) {
        $entity = $e->getEntity();
        foreach($entity->getMessages() as $message) {
            $this->addError(new Exception($message->getMessage(), $errorCode));
        }
    }
protected function handleValidationError(ValidationException $e, $errorCode = 409) {
        $entity = $e->getEntity();
        foreach($entity->getMessages() as $message) {
            $this->addError(new Exception($message->getMessage(), $errorCode));
        }
    }
protected function handleValidationError ( ValidationException $ e , $ errorCode = 409 ) { $ entity = $ e -> getEntity ( ) ; foreach ( $ entity -> getMessages ( ) as $ message ) { $ this -> addError ( new Exception ( $ message -> getMessage ( ) , $ errorCode ) ) ; } }
Handles exceptions from validations

@param ValidationException $e
@param int $errorCode

@return void
Handles exceptions from validations