Wrap stored procedure execution in try-catch to handle SqlException. Throw BadRequestException for configured SQL error numbers. Update constructor to accept SqlExceptionOptions. Add necessary using directives for new exception handling.