Package de.mhus.lib.form

Examples of de.mhus.lib.form.FormException


      } catch (ValidateException e) {
        setError(true);
        setCurrentError(e.findMessage());
      } catch (Throwable e) {
        setError(true);
        throw new FormException(getTarget(), this, "set"
            + getNameAsMethodSuffix(),e);
      }
    }

    try {
      getTarget().getClass().getMethod("set" + getNameAsMethodSuffix(),
          new Class[] { getFormValueClass() }).invoke(getTarget(),
          new Object[] { getFormValue() });
      setChanged(false);
      setError(false);
    } catch (InvocationTargetException e) {
      Throwable f = e.getCause();
      if (f != null && (f instanceof ValidateException)) {
        setError(true);
        setCurrentError(((ValidateException)f).findMessage());
      } else {
        setError(true);
        throw new FormException(getTarget(), this, "set"
            + getNameAsMethodSuffix(),e);
      }
    } catch (Throwable e) {
      setError(true);
      throw new FormException(getTarget(), this, "set"
          + getNameAsMethodSuffix(),e);
    }
  }
View Full Code Here


      ((FNumber)target).setValue(0);
    else
      try {
        ((FNumber)target).setValue(MCast.todouble(val.toString()));
      } catch (NumberFormatException nfe) {
        throw new FormException(this, target );
      }
  }
View Full Code Here

TOP

Related Classes of de.mhus.lib.form.FormException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.