src/RuntimeException.php
<?php namespace Dhii\Exception; use RuntimeException as RootRuntimeException;use Exception as RootException;use Dhii\Util\String\StringableInterface as Stringable; /** * Represents a problem with a function argument. * * @since [*next-version*] */class RuntimeException extends RootRuntimeException implements RuntimeExceptionInterface{ /* * Functionality common to exceptions * * @since [*next-version*] */ use ExceptionTrait; /** * @since [*next-version*] * * @param string|Stringable|int|float|bool|null $message The message, if any. * @param int|float|string|Stringable|null $code The numeric error code, if any. * @param RootException|null $previous The inner exception, if any. */ public function __construct($message = null, $code = null, RootException $previous = null) { $this->_initBaseException($message, $code, $previous); $this->_construct(); } /** * Parameter-less constructor. * * Invoke this in actual constructor. * * @since [*next-version*] */The method _construct is not named in camelCase. protected function _construct() { } /** * Calls the parent constructor. * * @param string $message The error message. * @param int $code The error code. * @param RootException $previous The inner exception, if any. * * @since [*next-version*] */The method _initParent is not named in camelCase. protected function _initParent($message = '', $code = 0, RootException $previous = null) { parent::__construct($message, $code, $previous); }}