java.lang.Object
org.springframework.shell.standard.AbstractShellComponent
org.springframework.shell.standard.commands.Stacktrace
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ResourceLoaderAware

@ShellComponent public class Stacktrace extends org.springframework.shell.standard.AbstractShellComponent
A command to display the full stacktrace when an error occurs.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
    Marker interface for beans providing stacktrace functionality to the shell.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Stacktrace(org.springframework.beans.factory.ObjectProvider<org.springframework.shell.result.ThrowableResultHandler> throwableResultHandler)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class org.springframework.shell.standard.AbstractShellComponent

    afterPropertiesSet, getApplicationContext, getCommandCatalog, getCompletionResolver, getResourceLoader, getShell, getTemplateExecutor, getTerminal, getThemeResolver, setApplicationContext, setResourceLoader

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Stacktrace

      public Stacktrace(org.springframework.beans.factory.ObjectProvider<org.springframework.shell.result.ThrowableResultHandler> throwableResultHandler)
  • Method Details

    • stacktrace

      @ShellMethod(key="stacktrace", value="Display the full stacktrace of the last error.", interactionMode=INTERACTIVE) public void stacktrace()