Use exceptions for error handling