initial commit
This commit is contained in:
11
src/Assets/Exceptions/Binding_Resolution_Exception.php
Normal file
11
src/Assets/Exceptions/Binding_Resolution_Exception.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Webshr\Core\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Psr\Container\ContainerExceptionInterface;
|
||||
|
||||
class Binding_Resolution_Exception extends Exception implements ContainerExceptionInterface
|
||||
{
|
||||
//
|
||||
}
|
||||
10
src/Assets/Exceptions/Bundle_Not_Found_Exception.php
Normal file
10
src/Assets/Exceptions/Bundle_Not_Found_Exception.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Webshr\Core\Assets\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class Bundle_Not_Found_Exception extends Exception
|
||||
{
|
||||
//
|
||||
}
|
||||
10
src/Assets/Exceptions/Manifest_Not_Found_Exception.php
Normal file
10
src/Assets/Exceptions/Manifest_Not_Found_Exception.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Webshr\Core\Assets\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class Manifest_Not_Found_Exception extends Exception
|
||||
{
|
||||
//
|
||||
}
|
||||
10
src/Assets/Exceptions/Meta_Not_Found_Exception.php
Normal file
10
src/Assets/Exceptions/Meta_Not_Found_Exception.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace Webshr\Core\Assets\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class Meta_Not_Found_Exception extends Exception
|
||||
{
|
||||
//
|
||||
}
|
||||
60
src/Assets/Exceptions/Skip_Module_Exception.php
Normal file
60
src/Assets/Exceptions/Skip_Module_Exception.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
namespace Webshr\Core\Assets\Exceptions;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use Throwable;
|
||||
|
||||
class Skip_Module_Exception extends InvalidArgumentException
|
||||
{
|
||||
/**
|
||||
* Create a new exception.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct(string $message = '', int $code = 0, ?Throwable $previous = null, string $package = '')
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
|
||||
$this->package = $package;
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of the module's package.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $package;
|
||||
|
||||
/**
|
||||
* Set the name of the module's package.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function set_package(string $package)
|
||||
{
|
||||
$this->package = $package;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the module's package.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function package()
|
||||
{
|
||||
return $this->package;
|
||||
}
|
||||
|
||||
/**
|
||||
* Report the exception.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function context()
|
||||
{
|
||||
return [
|
||||
'package' => $this->package(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user