Skip to content

Commit

Permalink
Code reorg. No new functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed Dec 31, 2022
1 parent f330be3 commit 2ff8a08
Show file tree
Hide file tree
Showing 13 changed files with 66 additions and 22 deletions.
21 changes: 0 additions & 21 deletions src/GDAO/Exceptions.php

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);

namespace GDAO\Model;

class CollectionCanOnlyContainGDAORecordsException extends \Exception{}
6 changes: 6 additions & 0 deletions src/GDAO/Model/ItemNotFoundInCollectionException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);

namespace GDAO\Model;

class ItemNotFoundInCollectionException extends \Exception {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);

namespace GDAO\Model;

class LoadingDataFromInvalidSourceIntoRecordException extends \Exception{}
1 change: 0 additions & 1 deletion src/GDAO/Model/RecordInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,6 @@ public function saveInTransaction($data_2_save = null): ?bool;
/**
* Set the \GDAO\Model object for this record
*
* @param \GDAO\Model $model
* @return $this
*/
public function setModel(\GDAO\Model $model): self;
Expand Down
6 changes: 6 additions & 0 deletions src/GDAO/Model/RecordOperationNotSupportedException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);

namespace GDAO\Model;

class RecordOperationNotSupportedException extends \Exception{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);

namespace GDAO\Model;

class RecordRelationWithSameNameAsAnExistingDBTableColumnNameException extends \Exception{}
6 changes: 6 additions & 0 deletions src/GDAO/ModelInvalidInsertValueSuppliedException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);

namespace GDAO;

class ModelInvalidInsertValueSuppliedException extends \Exception{}
6 changes: 6 additions & 0 deletions src/GDAO/ModelInvalidUpdateValueSuppliedException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);

namespace GDAO;

class ModelInvalidUpdateValueSuppliedException extends \Exception{}
6 changes: 6 additions & 0 deletions src/GDAO/ModelMustImplementMethodException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);

namespace GDAO;

class ModelMustImplementMethodException extends \Exception{}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);

namespace GDAO;

class ModelPrimaryColNameNotSetDuringConstructionException extends \Exception {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);

namespace GDAO;

class ModelPrimaryColValueNotRetrievableAfterInsertException extends \Exception {}
6 changes: 6 additions & 0 deletions src/GDAO/ModelTableNameNotSetDuringConstructionException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php
declare(strict_types=1);

namespace GDAO;

class ModelTableNameNotSetDuringConstructionException extends \Exception {}

0 comments on commit 2ff8a08

Please sign in to comment.