Class LicenseTemplateException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.creadur.whisker.model.LicenseTemplateException
All Implemented Interfaces:
Serializable

public class LicenseTemplateException extends Exception
Indicates that generating an instance of a license from the template (for the license family) has failed.
See Also:
  • Method Details

    • parameterMismatch

      public static LicenseTemplateException parameterMismatch(Collection<String> expectedParameters, Collection<String> actualParameters, String licenseName)
      Builds an exception indicating that parameter passed do not fulfill expectations.
      Parameters:
      expectedParameters - not null
      actualParameters - not null
      licenseName - not null
      Returns:
      not null
    • notLicenseTemplate

      public static LicenseTemplateException notLicenseTemplate(Map<String,String> parameters, String licenseName)
      Builds an instance.
      Parameters:
      parameters - not null
      licenseName - not null
      Returns:
      not null
    • getLicenseName

      public String getLicenseName()
      Gets the name of the erroneous license.
      Returns:
      license name, not null