blob: d5cd5564cdc3ca20f935b7274a37d1279d4584d5 [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3/**
4 * This file is part of the Carbon package.
5 *
6 * (c) Brian Nesbitt <brian@nesbot.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010011
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020012namespace Carbon\Exceptions;
13
14use BadMethodCallException as BaseBadMethodCallException;
15use Exception;
16
17class BadFluentConstructorException extends BaseBadMethodCallException implements BadMethodCallException
18{
19 /**
20 * Constructor.
21 *
22 * @param string $method
23 * @param int $code
24 * @param Exception|null $previous
25 */
26 public function __construct($method, $code = 0, Exception $previous = null)
27 {
28 parent::__construct(sprintf("Unknown fluent constructor '%s'.", $method), $code, $previous);
29 }
30}