src/FileRepository.php
public function findOrFail($name)
    {
        $module = $this->find($name);

        if ($module !== null) {
            return $module;
        }

        throw new ModuleNotFoundException("Module [{$name}] does not exist!");
    }
public function findOrFail($name)
    {
        $module = $this->find($name);

        if ($module !== null) {
            return $module;
        }

        throw new ModuleNotFoundException("Module [{$name}] does not exist!");
    }
public function findOrFail ( $ name ) { $ module = $ this -> find ( $ name ) ; if ( $ module !== null ) { return $ module ; } throw new ModuleNotFoundException ( "Module [{$name}] does not exist!" ) ; }
Find a specific module, if there return that, otherwise throw exception.

@param $name

@return Module

@throws ModuleNotFoundException
Find a specific module if there return that otherwise throw exception .