Class CommandExitException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.google.cloud.tools.managedcloudsdk.command.CommandExitException
-
- All Implemented Interfaces:
Serializable
public class CommandExitException extends Exception
Exception when sdk command fails.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CommandExitException(int exitCode)
Create a new exception.CommandExitException(int exitCode, String errorLog)
Create a new exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getErrorLog()
int
getExitCode()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CommandExitException
public CommandExitException(int exitCode, @Nullable String errorLog)
Create a new exception.- Parameters:
exitCode
- the process exit codeerrorLog
- additional loggable error information
-
CommandExitException
public CommandExitException(int exitCode)
Create a new exception.- Parameters:
exitCode
- the process exit code
-
-