You are here

public function UnprocessableHttpEntityException::getViolations in JSON:API 8.2

Same name and namespace in other branches
  1. 8 src/Exception/UnprocessableHttpEntityException.php \Drupal\jsonapi\Exception\UnprocessableHttpEntityException::getViolations()

Gets the constraint violations associated with this exception.

Return value

\Drupal\Core\Entity\EntityConstraintViolationListInterface The constraint violations.

File

src/Exception/UnprocessableHttpEntityException.php, line 55

Class

UnprocessableHttpEntityException
A class to represent a 422 - Unprocessable Entity Exception.

Namespace

Drupal\jsonapi\Exception

Code

public function getViolations() {
  return $this->violations;
}