1 package com.sslexplorer.core; 2 3 public class FieldValidationException extends Exception { 4 5 private String resourceKey; 6 7 /** 8 * Constructor 9 * 10 * @param resourceKey resource key to use for exception text 11 */ 12 public FieldValidationException(String resourceKey){ 13 super(); // Call default Super Constructor 14 this.resourceKey = resourceKey; 15 } 16 17 /** 18 * Get the resource key to use for the 19 * field validation exception text 20 * 21 * @return resource key to use for message 22 */ 23 public String getResourceKey() { 24 return resourceKey; 25 } 26 } 27