All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.threatconnect.sdk.server.response.service.error.LengthInvalidApiServiceResponse Maven / Gradle / Ivy

Go to download

The ThreatConnect Java SDK. Used to communicate with teh ThreatConnect Threat Intelligence Platform

The newest version!
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.threatconnect.sdk.server.response.service.error;

/**
 *
 * @author James
 */
public class LengthInvalidApiServiceResponse extends ErrorMessageApiServiceResponse
{
    public LengthInvalidApiServiceResponse(String entity, String field, int maxLength)
    {
        this(entity, field, 1, maxLength);
    }
    
    public LengthInvalidApiServiceResponse(String entity, String field, int minLength, int maxLength)
    {
        super("The " + field + " for this " + entity + " is invalid, please enter " + getIndefiniteArticle(field) + " " + field + " between " + minLength + "-" + maxLength + " characters in length");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy