public class TeaException extends RuntimeException
| Constructor and Description |
|---|
TeaException(String message)
Constructs a TeaException
|
TeaException(String message,
int exitCode)
Constructs a TeaException
|
TeaException(String message,
String details)
Constructs a TeaException
|
TeaException(String message,
String details,
int exitCode)
Constructs a TeaException
|
TeaException(String message,
String details,
Throwable cause)
Constructs a TeaException
|
TeaException(String message,
String details,
Throwable cause,
int exitCode)
Constructs a TeaException
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDetails()
Detailed message.
|
int |
getExitCode() |
int |
getStatusCode() |
String |
toString() |
TeaException |
withHttpStatusCode(int statusCode) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic TeaException(String message, String details, Throwable cause, int exitCode)
message - message describing the exceptiondetails - details of what caused the exceptioncause - the exception which is being wrapped with this TeaExceptionexitCode - the Unix exit code to be returned when executed via sshpublic TeaException(String message, String details, Throwable cause)
message - message describing the exceptiondetails - details of what caused the exceptioncause - the exception which is being wrapped with this TeaExceptionpublic TeaException(String message, String details)
message - message describing the exceptiondetails - details of what caused the exceptionpublic TeaException(String message, String details, int exitCode)
message - message describing the exceptiondetails - details of what caused the exceptionexitCode - the Unix exit code to be returned when executed via sshpublic TeaException(String message, int exitCode)
message - message describing the exceptionexitCode - the Unix exit code to be returned when executed via sshpublic TeaException(String message)
message - message describing the exceptionpublic String getDetails()
public int getExitCode()
public final TeaException withHttpStatusCode(int statusCode)
public final int getStatusCode()
Copyright © 2015 Cloud Software Group, Inc.. All Rights Reserved.