<?php
/**
 * Created by PhpStorm.
 * User: jiuli
 * Date: 2018/4/9
 * Time: 下午4:54
 */

namespace Mainto\RpcServer\Exceptions;


class RpcMethodNotFoundException extends RpcRuntimeException {
    private string $key;

    /**
     * RpcMethodNotFoundException constructor.
     * @param $key string
     */
    public function __construct (string $key) {
        parent::__construct("method not found: {$key}", 404);

        $this->key = $key;
    }
}