
com.threatconnect.sdk.server.response.service.error.LengthInvalidApiServiceResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
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