public class LicenseTemplateException extends Exception
Modifier and Type | Method and Description |
---|---|
String |
getLicenseName()
Gets the name of the erroneous license.
|
static LicenseTemplateException |
notLicenseTemplate(Map<String,String> parameters,
String licenseName)
Builds an instance.
|
static LicenseTemplateException |
parameterMismatch(Collection<String> expectedParameters,
Collection<String> actualParameters,
String licenseName)
Builds an exception indicating that parameter passed
do not fulfill expectations.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static LicenseTemplateException parameterMismatch(Collection<String> expectedParameters, Collection<String> actualParameters, String licenseName)
expectedParameters
- not nullactualParameters
- not nulllicenseName
- not nullpublic static LicenseTemplateException notLicenseTemplate(Map<String,String> parameters, String licenseName)
parameters
- not nulllicenseName
- not nullpublic String getLicenseName()
Copyright © 2011–1970 Apache Software Foundation. All rights reserved.