src/S3/StreamWrapper.php
private function boolCall(callable $fn, $flags = null)
    {
        try {
            return $fn();
        } catch (\Exception $e) {
            return $this->triggerError($e->getMessage(), $flags);
        }
    }
private function boolCall(callable $fn, $flags = null)
    {
        try {
            return $fn();
        } catch (\Exception $e) {
            return $this->triggerError($e->getMessage(), $flags);
        }
    }
private function boolCall ( callable $ fn , $ flags = null ) { try { return $ fn ( ) ; } catch ( \ Exception $ e ) { return $ this -> triggerError ( $ e -> getMessage ( ) , $ flags ) ; } }
Invokes a callable and triggers an error if an exception occurs while
calling the function.

@param callable $fn
@param int      $flags

@return bool
Invokes a callable and triggers an error if an exception occurs while calling the function .