Package com.cognifide.slice.mapper.exception

Examples of com.cognifide.slice.mapper.exception.MapperException


    } catch (Exception e) {
      String path = resource.getPath();
      String format = "[path={0}]: cannot map to object({1})";
      String message = MessageFormat.format(format, path, e.getMessage());
      logger.warn(message);
      throw new MapperException("mapResourceToObject failed", e);
    }
  }
View Full Code Here


    Object array = Array.newInstance(componentType, children.size());
    int index = 0;
    for (Object child : children) {
      if (!componentType.isAssignableFrom(child.getClass())) {
        String message = MessageFormat.format("Can't cast {0} into {1} array", child, componentType);
        throw new MapperException(message);
      }
      Array.set(array, index++, child);
    }
    return array;
  }
View Full Code Here

    } catch (Exception e) {
      String path = resource.getPath();
      String format = "[path={0}]: cannot map to object({1})";
      String message = MessageFormat.format(format, path, e.getMessage());
      logger.warn(message);
      throw new MapperException("mapResourceToObject failed", e);
    }
  }
View Full Code Here

TOP

Related Classes of com.cognifide.slice.mapper.exception.MapperException

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.