Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Columns/AbstractColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function setOptions($options)

if ($this->isSearchable()) {
if ((is_null($this->internalOptions["search"]) && is_null($this->internalOptions["filter"]))) {
throw new \Exception("Column is searchable but no filter or custom search is set. Column: " . $this->getDql());
throw new \LogicException("Column is searchable but no filter or custom search is set. Column: " . $this->getDql());
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Columns/BooleanColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function buildData($entity)
}

if (!is_bool($booleanValue)) {
throw new \Exception("Value should be boolean. Type: " . gettype($booleanValue));
throw new \LogicException("Value should be boolean. Type: " . gettype($booleanValue));
}

return $this->outputOptions[$booleanValue ? 'trueLabel' : 'falseLabel'];
Expand Down
2 changes: 1 addition & 1 deletion src/Columns/DateTimeColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function buildData($entity)
}

if (!$dateTime instanceof \DateTime) {
throw new \Exception("DateTimeColumn :: Property should be DateTime. Type: " . gettype($dateTime));
throw new \LogicException("DateTimeColumn :: Property should be DateTime. Type: " . gettype($dateTime));
}

return $dateTime->format($this->outputOptions['format']);
Expand Down
2 changes: 1 addition & 1 deletion src/HelloBootstrapTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function createView()

if ($this->tableOptions['enableCheckbox']) {
if (!$this->columnBuilder->getColumnByField($this->tableOptions['bulkIdentifier'])) {
throw new \Exception("Field for bulk identifier not found in columns. Given identifier: " . $this->tableOptions['bulkIdentifier']);
throw new \LogicException("Field for bulk identifier not found in columns. Given identifier: " . $this->tableOptions['bulkIdentifier']);
}

array_unshift($columns, array("checkbox" => true));
Expand Down
4 changes: 2 additions & 2 deletions src/HelloBootstrapTableFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ public function create($helloTable, $options = array())
if (!\is_string($helloTable)) {
$type = \gettype($helloTable);

throw new \Exception("HelloBootstrapTableFactory::create(): String expected, {$type} given");
throw new \LogicException("HelloBootstrapTableFactory::create(): String expected, {$type} given");
}

if (false === class_exists($helloTable)) {
throw new \Exception("HelloBootstrapTableFactory::create(): {$helloTable} does not exist");
throw new \LogicException("HelloBootstrapTableFactory::create(): {$helloTable} does not exist");
}

return new $helloTable(
Expand Down