added exception code for service container and base class