Exception Try Catch Block in PHP7

Posted Almost 3 years ago. Visible to the public.
    final public function call($method, $args = [])
    {
        try {
            return $this->_apiCall($method, $args);
        } catch (Custom_Exception $e) {
            throw $e;
        } catch (Throwable $e) {
            throw new Custom_Exception('Unexpected error: '.$e->getMessage(), $e->getCode(), $e);
        }
    }
kiatng
Posted by kiatng to OpenMage (2021-06-22 01:08)