| 1 |
<?php |
| 2 |
/** |
| 3 |
* ContainerException class file. |
| 4 |
*/ |
| 5 |
|
| 6 |
namespace Automattic\WooCommerce\Internal\DependencyManagement; |
| 7 |
|
| 8 |
/** |
| 9 |
* Class ContainerException. |
| 10 |
* Used to signal error conditions related to the dependency injection container. |
| 11 |
*/ |
| 12 |
class ContainerException extends \Exception { |
| 13 |
/** |
| 14 |
* Create a new instance of the class. |
| 15 |
* |
| 16 |
* @param null $message The exception message to throw. |
| 17 |
* @param int $code The error code. |
| 18 |
* @param \Exception|null $previous The previous throwable used for exception chaining. |
| 19 |
*/ |
| 20 |
public function __construct( $message = null, $code = 0, ?\Exception $previous = null ) { |
| 21 |
parent::__construct( $message, $code, $previous ); |
| 22 |
} |
| 23 |
} |
| 24 |
|