org.springframework.shell.core

## Class CommandResult

- java.lang.Object
- - org.springframework.shell.core.CommandResult

-     public class CommandResult
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CommandResult(boolean success)`
    `CommandResult(boolean success, Object result, Throwable exception)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Throwable` | `getException()`
    `Object` | `getResult()`
    `boolean` | `isSuccess()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### CommandResult

          public CommandResult(boolean success)

    - #### CommandResult

          public CommandResult(boolean success,
                       Object result,
                       Throwable exception)

  - ### Method Detail

    - #### isSuccess

          public boolean isSuccess()

    - #### getResult

          public Object getResult()

    - #### getException

          public Throwable getException()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`