Standardized exception handling