public getLoadErrors ( ) : Exceptio\Exception[] | ||
리턴 | Exceptio\Exception[] | The errors that occurred during loading. If the returned array is empty, the mapping was loaded successfully. |
public function getLoadErrors()
{
if (null === $this->state) {
throw new NotLoadedException('The mapping is not loaded.');
}
return $this->loadErrors;
}
private function assertNoLoadErrors(PathMapping $mapping) { $loadErrors = $mapping->getLoadErrors(); if (count($loadErrors) > 0) { // Rethrow first error throw reset($loadErrors); } }