src/allejo/stakx/Exception/DependencyMissingException.php 1 location
|
@@ 12-30 (lines=19) @@
|
| 9 |
|
|
| 10 |
|
use Throwable; |
| 11 |
|
|
| 12 |
|
class DependencyMissingException extends \RuntimeException |
| 13 |
|
{ |
| 14 |
|
private $dependency; |
| 15 |
|
|
| 16 |
|
public function __construct($dependency, $message = "", $code = 0, Throwable $previous = null) |
| 17 |
|
{ |
| 18 |
|
$this->dependency = $dependency; |
| 19 |
|
|
| 20 |
|
parent::__construct($message, $code, $previous); |
| 21 |
|
} |
| 22 |
|
|
| 23 |
|
/** |
| 24 |
|
* @return string |
| 25 |
|
*/ |
| 26 |
|
public function getDependency() |
| 27 |
|
{ |
| 28 |
|
return $this->dependency; |
| 29 |
|
} |
| 30 |
|
} |
| 31 |
|
|
src/allejo/stakx/Exception/UnsupportedDataTypeException.php 1 location
|
@@ 12-30 (lines=19) @@
|
| 9 |
|
|
| 10 |
|
use Throwable; |
| 11 |
|
|
| 12 |
|
class UnsupportedDataTypeException extends \RuntimeException |
| 13 |
|
{ |
| 14 |
|
private $dataType; |
| 15 |
|
|
| 16 |
|
public function __construct($dataType, $message = "", $code = 0, Throwable $previous = null) |
| 17 |
|
{ |
| 18 |
|
$this->dataType = $dataType; |
| 19 |
|
|
| 20 |
|
parent::__construct($message, $code, $previous); |
| 21 |
|
} |
| 22 |
|
|
| 23 |
|
/** |
| 24 |
|
* @return string |
| 25 |
|
*/ |
| 26 |
|
public function getDataType() |
| 27 |
|
{ |
| 28 |
|
return $this->dataType; |
| 29 |
|
} |
| 30 |
|
} |