redora.generator
Class ModelGenerationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
redora.generator.ModelGenerationException
- All Implemented Interfaces:
- Serializable
public class ModelGenerationException
- extends Exception
Occurs when it generates.
Has a simple util to print the model.
- Author:
- Nanjing RedOrange (http://www.red-orange.cn)
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ModelGenerationException
public ModelGenerationException(String s,
Exception e)
ModelGenerationException
public ModelGenerationException(String s)
printModel
public static String printModel(FileLocations where,
String modelFileName)
- Return a string with the contents of the model's XML.
- Parameters:
where - (Mandatory)modelFileName - (Mandatory) Filename including .xml suffix but without the path.
- Returns:
- Always something, the file as string or an error message.
printInclude
public static String printInclude(FileLocations where,
String includeFileName)
- Similar to the printModel, but then it takes the include file.
- Parameters:
where - (Mandatory)includeFileName - (Mandatory) Filename including .xml suffix but without the path.
- Returns:
- Always something, the file as string or an error message.
Copyright © 2012 Nanjing RedOrange Co. ltd. All Rights Reserved.