code: public void exceptionOccured(Throwable throwable)
      {
          logger.error( "Error: " + throwable.getMessage() );
  
          if (throwable.getCause() != null)
          {
              logger.error( "Caused by:" );
              logger.error( ExceptionUtils.stackTrace( throwable.getCause(), "\n" ) );
          }
      }
docs: {@inheritDoc}