Class libraries error handling