/* * Copyright 2010-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.geo.model; import com.amazonaws.AmazonServiceException; /** *
* The input failed to meet the constraints specified by the AWS service. *
*/ public class ValidationException extends AmazonServiceException { private static final long serialVersionUID = 1L; /** ** The field where the invalid entry was detected. *
*/ private java.util.List* A message with the reason for the validation exception error. *
*
* Constraints:
* Allowed Values: UnknownOperation, Missing, CannotParse,
* FieldValidationFailed, Other
*/
private String reason;
/**
* Constructs a new ValidationException with the specified error message.
*
* @param message Describes the error encountered.
*/
public ValidationException(String message) {
super(message);
}
/**
*
* The field where the invalid entry was detected. *
* * @return* The field where the invalid entry was detected. *
*/ public java.util.List* The field where the invalid entry was detected. *
* * @param fieldList* The field where the invalid entry was detected. *
*/ public void setFieldList(java.util.Collection* A message with the reason for the validation exception error. *
*
* Constraints:
* Allowed Values: UnknownOperation, Missing, CannotParse,
* FieldValidationFailed, Other
*
* @return
* A message with the reason for the validation exception error. *
* @see ValidationExceptionReason */ public String getReason() { return reason; } /** ** A message with the reason for the validation exception error. *
*
* Constraints:
* Allowed Values: UnknownOperation, Missing, CannotParse,
* FieldValidationFailed, Other
*
* @param reason
* A message with the reason for the validation exception error. *
* @see ValidationExceptionReason */ public void setReason(String reason) { this.reason = reason; } }