Every convex function $f$ can be represented via a convex cone by defining
$$K_f = \operatorname{cl} \{(u,t,x) \in \mathbb{R}_> \times \mathbb{R} \times \mathbb{R}^n;\ t \ge u f(x/u) \}.$$
Then $f(x) \le t$ if and only if $(1,t,x) \in K_f$.
Using this trick you can reformulate every convex optimization problem as a conic optimization problem. If $K_f$ turns out to be one of the standard cones, like the positive semidefinite cone, you're in luck. However, this will not be of any use if $f$ is some nasty function that generates some nasty convex cone $K_f$. For example, $f(x) = -\cos(x)$ is convex for $-\pi/2 \le x \le \pi/2$, but no solver implements this cone and I'd be really impressed if some managed to. You'd need the barrier function for its cone, and I would bet that no analytical expression for it exists.
Often you deal with cones that you don't have a solver for by representing them in terms of cones you do. For example, plenty of norm minimization problems can be reformulated in terms of the positive semidefinite cone. As you might expect, this is not always possible. There are plenty of cones that cannot be represented in terms of the usual ones (non-negative, positive semidefinite, second order, and exponential).
For example, in quantum mechanics one can define the convex cone of the (unnormalized) separable states, and one would really like to optimize over it. Recently it was proven, however, that this cone cannot be represented in terms of the positive semidefinite cone.