Class CommandExecutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.google.cloud.tools.managedcloudsdk.command.CommandExecutionException
-
- All Implemented Interfaces:
Serializable
public class CommandExecutionException extends Exception
Exception thrown when a command failed to execute completely.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandExecutionException(String message, Throwable cause)
Creates a new command execution exception.CommandExecutionException(String message, Throwable cause, String errorLog)
Creates a new command execution exception.CommandExecutionException(Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorLog()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CommandExecutionException
public CommandExecutionException(Throwable cause)
-
CommandExecutionException
public CommandExecutionException(String message, Throwable cause)
Creates a new command execution exception.- Parameters:
message
- failure details; typically output of stdout and stderrcause
- root exception
-
-