Implements the ServiceLocatorAware.
Basic exception handle.