__construct() __construct(string $msg, integer $code, array|null $args = null) Constructor Parameters string $msg Describes the error. integer $code The code error (defined in the error class). array|null $args Arguments used in the message that describes the error.