Added support for nested errors to the application adapter.