WordPress at Your Fingertips
function is not described


ContainerException::__construct() public WC 1.0

Create a new instance of the class.

{} It's a method of the class: ContainerException{}

No Hooks.


null. Nothing.


$ContainerException = new ContainerException();
$ContainerException->__construct( $message, $code, $previous );
The exception message to throw.
Default: null
The error code.
The previous throwable used for exception chaining.
Default: null

Code of ContainerException::__construct() WC 5.9.0

public function __construct( $message = null, $code = 0, Exception $previous = null ) {
	parent::__construct( $message, $code, $previous );