public class TeaIllegalArgumentException extends TeaException
TeaOperation
. The exception will be interpreted as a validation error and the messages for the
parameters will be displayed in the UI form or shell. The object state should not change when this exception is thrown.The HTTP status code used
for indicating this exception is 400.Constructor and Description |
---|
TeaIllegalArgumentException(IllegalArgumentException cause) |
TeaIllegalArgumentException(IllegalArgumentException cause,
int exitCode) |
TeaIllegalArgumentException(String message)
Constructs a TeaIllegalArgumentException
|
TeaIllegalArgumentException(String message,
int exitCode)
Constructs a TeaIllegalArgumentException
|
TeaIllegalArgumentException(String message,
String details)
Constructs a TeaIllegalArgumentException
|
TeaIllegalArgumentException(String message,
String details,
int exitCode)
Constructs a TeaIllegalArgumentException
|
TeaIllegalArgumentException(String message,
String details,
int exitCode,
Map<String,String> paramMessages)
Constructs a TeaIllegalArgumentException
|
TeaIllegalArgumentException(String message,
String details,
Map<String,String> paramMessages)
Constructs a TeaIllegalArgumentException
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getParamMessages()
Map - parameter name to message.
|
getDetails, getExitCode, getStatusCode, toString, withHttpStatusCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public TeaIllegalArgumentException(String message, String details, int exitCode, Map<String,String> paramMessages)
message
- message describing the exceptiondetails
- details of what caused the exceptionexitCode
- the Unix exit code to be returned when executed via sshparamMessages
- error messages for the parameterspublic TeaIllegalArgumentException(String message, String details, Map<String,String> paramMessages)
message
- message describing the exceptiondetails
- details of what caused the exceptionparamMessages
- error messages for the parameterspublic TeaIllegalArgumentException(String message, String details)
message
- message describing the exceptiondetails
- details of what caused the exceptionpublic TeaIllegalArgumentException(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 TeaIllegalArgumentException(String message)
message
- message describing the exceptionpublic TeaIllegalArgumentException(String message, int exitCode)
message
- message describing the exceptionexitCode
- the Unix exit code to be returned when executed via sshpublic TeaIllegalArgumentException(IllegalArgumentException cause)
public TeaIllegalArgumentException(IllegalArgumentException cause, int exitCode)
Copyright © 2015 Cloud Software Group, Inc.. All Rights Reserved.