Package com.artemis.utils.reflect

Examples of com.artemis.utils.reflect.ReflectionException


  /** Sets the value of the field on the supplied object. */
  public void set (Object obj, Object value) throws ReflectionException {
    try {
      field.set(obj, value);
    } catch (IllegalArgumentException e) {
      throw new ReflectionException("Could not set " + getDeclaringClass() + "#" + getName() + ": " + e.getMessage(), e);
    } catch (IllegalAccessException e) {
      throw new ReflectionException("Illegal access to field " + getName() + ": " + e.getMessage(), e);
    }
  }
View Full Code Here


   * initialization parameters. */
  public Object newInstance (Object... args) throws ReflectionException {
    try {
      return constructor.newInstance(args);
    } catch (IllegalArgumentException e) {
      throw new ReflectionException("Illegal argument(s) supplied to constructor for class: " + getDeclaringClass().getName(),
        e);
    }
  }
View Full Code Here

TOP

Related Classes of com.artemis.utils.reflect.ReflectionException

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.