Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
OauthInputException.php
Go to the documentation of this file.
1 <?php
8 
10 
16 {
22  public function getAggregatedErrorMessage()
23  {
24  $errors = [];
25  foreach ($this->getErrors() as $error) {
26  // Clean up any trailing period
27  $errors[] = rtrim($error->getMessage(), '.');
28  }
29  $errorMsg = '';
30  if (!empty($errors)) {
31  $errorMsg = implode(', ', $errors);
32  }
33  return $errorMsg;
34  }
35 }