GBException::getPreviousCompat PHP Method

getPreviousCompat() public static method

public static getPreviousCompat ( $e, $default = null )
    public static function getPreviousCompat($e, $default = null)
    {
        if (self::$is_php53) {
            return $e->getPrevious();
        } elseif ($e instanceof self) {
            return $e->_previous;
        }
        return $default;
    }