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

nyla.solutions.core.exception.RequiredException Maven / Gradle / Ivy

Go to download

This Java API provides support for application utilities (application configuration, data encryption, debugger, text processing, and more).

The newest version!
package nyla.solutions.core.exception;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * RequiredException used to indicate that a given field is required.
 * 
* @author Gregory Green * @version 1.0 */ public class RequiredException extends DataException { /** * Comment for serialVersionUID */ private static final long serialVersionUID = -5598182068206670293L; /** * Constructor for RequiredException initializes internal * data settings. * @param aField the field that is required */ public RequiredException(String aField) { if(aField == null) aField = ""; Map map = new HashMap (1); map.put("field", aField); try { formatMessage("RequiredException.required", map); } catch(Exception e) { setMessage(aField+" required"); } }// -------------------------------------------- }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy