src/Exception/ResourceNotFoundException.php
public static function notFound(string $path = null, array $options = []): ResourceNotFoundException
    {
        $query = [];
        if (array_key_exists('query', $options)) {
            $query = $options['query'];
        }
        return new static(static::createErrorMessage(static::NOT_FOUND_MESSAGE, $path, $query));
    }
public static function notFound(string $path = null, array $options = []): ResourceNotFoundException
    {
        $query = [];
        if (array_key_exists('query', $options)) {
            $query = $options['query'];
        }
        return new static(static::createErrorMessage(static::NOT_FOUND_MESSAGE, $path, $query));
    }
public static function notFound ( string $ path = null , array $ options = [ ] ) : ResourceNotFoundException { $ query = [ ] ; if ( array_key_exists ( 'query' , $ options ) ) { $ query = $ options [ 'query' ] ; } return new static ( static :: createErrorMessage ( static :: NOT_FOUND_MESSAGE , $ path , $ query ) ) ; }
Returns a new instance for the resource not found exception.

@param string $path    The requested path
@param array  $options The options passed to the request

@return ResourceNotFoundException
Returns a new instance for the resource not found exception .