org.fusesource.process.manager.support.command
Class CommandFailedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.fusesource.process.manager.support.command.CommandFailedException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CommandTimeoutException

public class CommandFailedException
extends java.lang.Exception

See Also:
Serialized Form

Constructor Summary
CommandFailedException(Command command, int exitCode, java.lang.String output)
           
CommandFailedException(Command command, java.lang.String message, java.lang.Throwable cause)
           
 
Method Summary
 boolean exited()
           
 Command getCommand()
           
 java.lang.Integer getExitCode()
           
 java.lang.String getOutput()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommandFailedException

public CommandFailedException(Command command,
                              java.lang.String message,
                              java.lang.Throwable cause)

CommandFailedException

public CommandFailedException(Command command,
                              int exitCode,
                              java.lang.String output)
Method Detail

getCommand

public Command getCommand()

exited

public boolean exited()

getExitCode

public java.lang.Integer getExitCode()

getOutput

public java.lang.String getOutput()


Copyright © 2013 Red Hat. All Rights Reserved.