Exceptions
Exceptions 3
Doctrine\DBAL\Exception\ SyntaxErrorException
case '23505':
return new UniqueConstraintViolationException($message, $exception);
case '42601':
return new SyntaxErrorException($message, $exception);
case '42702':
return new NonUniqueFieldNameException($message, $exception);
case '42703':
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php
->
convertException
(line 182)
if ($driverEx instanceof DriverException) {
return $driverEx;
}
if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof DeprecatedDriverException) {
return $driver->convertException($msg, $driverEx);
}
return new Exception($msg, 0, $driverEx);
}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php
::
wrapException
(line 159)
$msg .= ' with params ' . self::formatParameters($params);
}
$msg .= ":\n\n" . $driverEx->getMessage();
return self::wrapException($driver, $driverEx, $msg);
}
/**
* @deprecated
*
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php
::
driverExceptionDuringQuery
(line 2226)
$this->throw(
Exception::driverExceptionDuringQuery(
$this->_driver,
$e,
$sql,
$this->resolveParams($params, $types)
)
);
}
/**
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php
->
handleExceptionDuringQuery
(line 185)
} catch (Throwable $ex) {
if ($logger) {
$logger->stopQuery();
}
$this->conn->handleExceptionDuringQuery($ex, $this->sql, $this->params, $this->types);
}
if ($logger) {
$logger->stopQuery();
}
if ($page) {
$sql .= " OFFSET " . $page;
}
$stmt = $connection->prepare($sql);
$stmt->execute();
$result = array();
foreach ($stmt->fetchAll() as $data) {
$temp = array();
if ($state) {
$temp['id'] = $data['row_id'];
$entityManager = $this->getDoctrine()->getManager();
$entityManager->persist($publikasi);
$entityManager->flush();
$variabel = $tVariabelRepo->findBy(['pub' => $id, 'is_tampil' => true], ['id' => 'asc']);
$dataset = $this->getDataTable($id, null, null, null);
$styleFontCenter = array(
'alignment' => array('horizontal' => Alignment::HORIZONTAL_CENTER)
);
in
vendor/symfony/http-kernel/HttpKernel.php
->
downloadExcel
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Debug::enable();
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Doctrine\DBAL\Driver\PDO\ Exception
*/
final class Exception extends PDOException
{
public static function new(\PDOException $exception): self
{
return new self($exception);
}
}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php
::
new
(line 119)
public function execute($params = null)
{
try {
return parent::execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
}
/**
* {@inheritdoc}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php
->
execute
(line 179)
if ($logger) {
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
$stmt = $this->stmt->execute($params);
} catch (Throwable $ex) {
if ($logger) {
$logger->stopQuery();
}
if ($page) {
$sql .= " OFFSET " . $page;
}
$stmt = $connection->prepare($sql);
$stmt->execute();
$result = array();
foreach ($stmt->fetchAll() as $data) {
$temp = array();
if ($state) {
$temp['id'] = $data['row_id'];
$entityManager = $this->getDoctrine()->getManager();
$entityManager->persist($publikasi);
$entityManager->flush();
$variabel = $tVariabelRepo->findBy(['pub' => $id, 'is_tampil' => true], ['id' => 'asc']);
$dataset = $this->getDataTable($id, null, null, null);
$styleFontCenter = array(
'alignment' => array('horizontal' => Alignment::HORIZONTAL_CENTER)
);
in
vendor/symfony/http-kernel/HttpKernel.php
->
downloadExcel
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Debug::enable();
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
PDOException
*/
#[ReturnTypeWillChange]
public function execute($params = null)
{
try {
return parent::execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php
->
execute
(line 117)
*/
#[ReturnTypeWillChange]
public function execute($params = null)
{
try {
return parent::execute($params);
} catch (PDOException $exception) {
throw Exception::new($exception);
}
}
in
vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php
->
execute
(line 179)
if ($logger) {
$logger->startQuery($this->sql, $this->params, $this->types);
}
try {
$stmt = $this->stmt->execute($params);
} catch (Throwable $ex) {
if ($logger) {
$logger->stopQuery();
}
if ($page) {
$sql .= " OFFSET " . $page;
}
$stmt = $connection->prepare($sql);
$stmt->execute();
$result = array();
foreach ($stmt->fetchAll() as $data) {
$temp = array();
if ($state) {
$temp['id'] = $data['row_id'];
$entityManager = $this->getDoctrine()->getManager();
$entityManager->persist($publikasi);
$entityManager->flush();
$variabel = $tVariabelRepo->findBy(['pub' => $id, 'is_tampil' => true], ['id' => 'asc']);
$dataset = $this->getDataTable($id, null, null, null);
$styleFontCenter = array(
'alignment' => array('horizontal' => Alignment::HORIZONTAL_CENTER)
);
in
vendor/symfony/http-kernel/HttpKernel.php
->
downloadExcel
(line 163)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
Debug::enable();
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Stack Traces 3
[3/3]
SyntaxErrorException
|
---|
Doctrine\DBAL\Exception\SyntaxErrorException: An exception occurred while executing 'SELECT * FROM crosstab('select a.row_id, b.id, a.isi from t_data a join t_variabel b on a.variabel_id = b.id where a.pub_id = 4139 and b.is_tampil is true order by 1, 2') AS ct (row_id int, periode_update text, kecamatan text, faskes_pemberi_layanan_vaksinasi_covid_19__pkm_rs_klinik_dll_ text, usia_6_11_tahun__anak__sasaran text, usia_6_11_tahun__anak__hasil text, usia_6_11_tahun__anak__persen text, usia_12_17_tahun__remaja__sasaran text, usia_12_17_tahun__remaja__hasil text, usia_12_17_tahun__remaja__persen text, usia_18_59_tahun__masyarakat_umum__sasaran text, usia_18_59_tahun__masyarakat_umum__hasil text, usia_18_59_tahun__masyarakat_umum__persen text, usia_>=_60_tahun_lansia_sasaran text, usia_>=_60_tahun_lansia_hasil text, usia_>=_60_tahun_lansia_persen text, cakupan_total_sasaran text, cakupan_total_hasil text, cakupan_total_persen text) where 1=1': SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near ">=" LINE 6: ...a_18_59_tahun__masyarakat_umum__persen text, usia_>=_60_tahu... ^ at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php:73 at Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException() (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:182) at Doctrine\DBAL\DBALException::wrapException() (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:159) at Doctrine\DBAL\DBALException::driverExceptionDuringQuery() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:2226) at Doctrine\DBAL\Connection->handleExceptionDuringQuery() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php:185) at Doctrine\DBAL\Statement->execute() (src/Controller/Base/BaseController.php:321) at App\Controller\Base\BaseController->getDataTable() (src/Controller/Frontend/DatasetController.php:321) at App\Controller\Frontend\DatasetController->downloadExcel() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:20) |
[2/3]
Exception
|
---|
Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near ">=" LINE 6: ...a_18_59_tahun__masyarakat_umum__persen text, usia_>=_60_tahu... ^ at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18 at Doctrine\DBAL\Driver\PDO\Exception::new() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:119) at Doctrine\DBAL\Driver\PDOStatement->execute() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php:179) at Doctrine\DBAL\Statement->execute() (src/Controller/Base/BaseController.php:321) at App\Controller\Base\BaseController->getDataTable() (src/Controller/Frontend/DatasetController.php:321) at App\Controller\Frontend\DatasetController->downloadExcel() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:20) |
[1/3]
PDOException
|
---|
PDOException: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near ">=" LINE 6: ...a_18_59_tahun__masyarakat_umum__persen text, usia_>=_60_tahu... ^ at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117 at PDOStatement->execute() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117) at Doctrine\DBAL\Driver\PDOStatement->execute() (vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php:179) at Doctrine\DBAL\Statement->execute() (src/Controller/Base/BaseController.php:321) at App\Controller\Base\BaseController->getDataTable() (src/Controller/Frontend/DatasetController.php:321) at App\Controller\Frontend\DatasetController->downloadExcel() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:20) |