Exception InvalidArgumentException (2.51.0)

public class InvalidArgumentException extends ApiException

Exception thrown when client specified an invalid argument. Note that this differs from FailedPreconditionException. This exception indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name).

Constructors

InvalidArgumentException(String message, Throwable cause, StatusCode statusCode, boolean retryable)

public InvalidArgumentException(String message, Throwable cause, StatusCode statusCode, boolean retryable)
Parameters
Name Description
message String
cause Throwable
statusCode StatusCode
retryable boolean

InvalidArgumentException(Throwable cause, StatusCode statusCode, boolean retryable)

public InvalidArgumentException(Throwable cause, StatusCode statusCode, boolean retryable)
Parameters
Name Description
cause Throwable
statusCode StatusCode
retryable boolean

InvalidArgumentException(Throwable cause, StatusCode statusCode, boolean retryable, ErrorDetails errorDetails)

public InvalidArgumentException(Throwable cause, StatusCode statusCode, boolean retryable, ErrorDetails errorDetails)
Parameters
Name Description
cause Throwable
statusCode StatusCode
retryable boolean
errorDetails ErrorDetails