Skip to content

Commit 2ff8a08

Browse files
author
rotimi
committed
Code reorg. No new functionality.
1 parent f330be3 commit 2ff8a08

13 files changed

+66
-22
lines changed

src/GDAO/Exceptions.php

-21
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace GDAO\Model;
5+
6+
class CollectionCanOnlyContainGDAORecordsException extends \Exception{}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace GDAO\Model;
5+
6+
class ItemNotFoundInCollectionException extends \Exception {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace GDAO\Model;
5+
6+
class LoadingDataFromInvalidSourceIntoRecordException extends \Exception{}

src/GDAO/Model/RecordInterface.php

-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ public function saveInTransaction($data_2_save = null): ?bool;
295295
/**
296296
* Set the \GDAO\Model object for this record
297297
*
298-
* @param \GDAO\Model $model
299298
* @return $this
300299
*/
301300
public function setModel(\GDAO\Model $model): self;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace GDAO\Model;
5+
6+
class RecordOperationNotSupportedException extends \Exception{}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace GDAO\Model;
5+
6+
class RecordRelationWithSameNameAsAnExistingDBTableColumnNameException extends \Exception{}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace GDAO;
5+
6+
class ModelInvalidInsertValueSuppliedException extends \Exception{}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace GDAO;
5+
6+
class ModelInvalidUpdateValueSuppliedException extends \Exception{}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace GDAO;
5+
6+
class ModelMustImplementMethodException extends \Exception{}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace GDAO;
5+
6+
class ModelPrimaryColNameNotSetDuringConstructionException extends \Exception {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace GDAO;
5+
6+
class ModelPrimaryColValueNotRetrievableAfterInsertException extends \Exception {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
declare(strict_types=1);
3+
4+
namespace GDAO;
5+
6+
class ModelTableNameNotSetDuringConstructionException extends \Exception {}

0 commit comments

Comments
 (0)