/**
  * Construct an instance of a FailedCheckException.
  *
  * @param CheckableInterface $checkable
  * @param CheckResultInterface $result
  * @param string $message
  * @param int $code
  * @param Exception|null $previous
  */
 public function __construct(CheckableInterface $checkable, CheckResultInterface $result, $message = '', $code = 0, Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
     $this->checkable = $checkable;
     $this->result = $result;
 }
 /**
  * Construct an instance of a ModuleNotFoundException.
  *
  * @param string $moduleName
  * @param int $code
  * @param CoreException|null $previous
  */
 public function __construct($moduleName, $code = 0, CoreException $previous = null)
 {
     parent::__construct(vsprintf('The module `%s` was not found in this dashboard.', [$moduleName]), $code, $previous);
 }
 /**
  * (PHP 5 &gt;= 5.1.0)<br/>
  * Construct the exception. Note: The message is NOT binary safe.
  *
  * @link http://php.net/manual/en/exception.construct.php
  *
  * @param string $typeName The name of the type that is unknown.
  * @param int $code [optional] The Exception code.
  * @param Exception $previous [optional] The previous exception used for
  * the exception chaining.
  */
 public function __construct($typeName, $code = 0, Exception $previous = null)
 {
     parent::__construct(sprintf('The type %s is unknown.', $typeName), $code, $previous);
 }
 /**
  * Construct an instance of a MismatchedDataTypesException.
  *
  * @param string|object $expected
  * @param mixed $received
  */
 public function __construct($expected, $received)
 {
     parent::__construct('', null, null);
     $this->setExpectedAndReceived($expected, $received);
 }
 /**
  * Construct an instance of a NodeRenderingException.
  *
  * @param mixed $content
  * @param int $code
  * @param Exception|null $previous
  */
 public function __construct($content, $code = 0, Exception $previous = null)
 {
     parent::__construct(vsprintf('Unknown content type: %s. Node cannot be rendered.', [TypeHound::fetch($content)]), $code, $previous);
     $this->content = $content;
 }
 /**
  * Construct the exception.
  *
  * @param SpecResult $checkableResult
  * @param string $message [optional] The Exception message to throw.
  * @param int $code [optional] The Exception code.
  * @param Exception $previous [optional] The previous exception used for
  * the exception chaining.
  */
 public function __construct(SpecResult $checkableResult, $message = 'Invalid attributes were provided.', $code = 0, Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
     $this->specResult = $checkableResult;
 }
 /**
  * Construct an instance of a MethodNotFoundException.
  *
  * @param string $moduleName
  * @param int $methodName
  * @param int $code
  * @param CoreException|null $previous
  */
 public function __construct($moduleName, $methodName, $code = 0, CoreException $previous = null)
 {
     parent::__construct(vsprintf('The method `%s` was not found in the `%s` module.', [$methodName, $moduleName]), $code, $previous);
 }