Cerebral herniation can be a complication of what?

Cerebral herniation can be a complication of what?

Extra-axial hemorrhage or any space-occupying intracerebral mass