Automattic\WooCommerce\Internal\DependencyManagement

ContainerException{}WC 1.0

Class ContainerException. Used to signal error conditions related to the dependency injection container.

Хуков нет.

Использование

$ContainerException = new ContainerException();
// use class methods

Методы

  1. public __construct( $message = null, $code = 0, \Exception $previous = null )

Код ContainerException{} WC 8.9.3

class ContainerException extends \Exception {
	/**
	 * Create a new instance of the class.
	 *
	 * @param null            $message The exception message to throw.
	 * @param int             $code The error code.
	 * @param \Exception|null $previous The previous throwable used for exception chaining.
	 */
	public function __construct( $message = null, $code = 0, \Exception $previous = null ) {
		parent::__construct( $message, $code, $previous );
	}
}