Well, in the OT; Han says:The Romulan Republic wrote: ↑2018-08-01 07:28pmAlso, gravity wells fuck with hyperdrives, so its doubtful you could even get close to a planet in hyperspace (though I don't know if most "casual" fans would know that).
Han Solo: It'll take a few moments to get the coordinates from the navicomputer.
Luke Skywalker: [frantic] Are you kidding? At the rate they're gaining—
Han Solo: Traveling through hyperspace ain't like dusting crops, boy! Without precise calculations we could fly right through a star or bounce too close to a supernova and that'd end your trip real quick, wouldn't it?
This implies that Hyperspace travel is pretty dangerous, if you take things close to the bleeding edge, and in the OT, all the cases of hyperspace escapes, etc are in fairly deep space past a planet's gravity well, e.g. the Rebel Transports in ESB continue pushing on right past the crippled ISD, instead of instantly jumping into hyperspace.
Disney Films basically throw that out of the window, turning hyperdrives into a "get out of jail free card":
***Rogue One, they use it to escape the oncoming crustal displacement wave from the DS1 pilot target shot that destroys Jedha City, and they do it from about maybe 5,000 ft above ground level in atmosphere.
***The Force Awakens, Han goes into hyperspace from within the cargo bay of another ship.
I'm sure there are others, but I'm tired and feh.