Class SimpleDataFetcherExceptionHandler

    • Constructor Detail

      • SimpleDataFetcherExceptionHandler

        public SimpleDataFetcherExceptionHandler()
    • Method Detail

      • logException

        protected void logException​(ExceptionWhileDataFetching error,
                                    java.lang.Throwable exception)
        Called to log the exception - a subclass could choose to something different in logging terms
        Parameters:
        error - the graphql error
        exception - the exception that happened
      • unwrap

        protected java.lang.Throwable unwrap​(java.lang.Throwable exception)
        Called to unwrap an exception to a more suitable cause if required.
        Parameters:
        exception - the exception to unwrap
        Returns:
        the suitable exception