protected InvalidPropertyException(final String message,final String propertyName){
  super(String.format(message,propertyName));
  this.propertyName=propertyName;
}

protected InvalidPropertyException ( final String message , final String propertyName ) { super ( String . format ( message , propertyName ) ) ; this . propertyName = propertyName ; }
creates a new exception .
