Add serene_object class and update error messaging.