public static SessionLoaderException failedToParseXML(String message, int lineNumber, int columnNumber, Throwable exception) { Object[] args = { message, Integer.valueOf(lineNumber), Integer.valueOf(columnNumber) }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, UNABLE_TO_PARSE_XML, args), exception); sessionLoaderException.setErrorCode(UNABLE_TO_PARSE_XML); return sessionLoaderException; }
public static SessionLoaderException failedToParseXML(String message, int lineNumber, int columnNumber, Throwable exception) { Object[] args = { message, new Integer(lineNumber), new Integer(columnNumber) }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, UNABLE_TO_PARSE_XML, args), exception); sessionLoaderException.setErrorCode(UNABLE_TO_PARSE_XML); return sessionLoaderException; }
public static SessionLoaderException finalException(Vector exceptionList) { Object[] args = { Integer.valueOf(exceptionList.size()) }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, FINAL_EXCEPTION, args)); sessionLoaderException.setErrorCode(FINAL_EXCEPTION); sessionLoaderException.setExceptionList(exceptionList); return sessionLoaderException; }
public static SessionLoaderException failedToParseXML(String message, Throwable exception) { Object[] args = { message }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, XML_SCHEMA_PARSING_ERROR, args), exception); sessionLoaderException.setErrorCode(XML_SCHEMA_PARSING_ERROR); return sessionLoaderException; }
public static SessionLoaderException nonParseException(Throwable exception) { Object[] args = { }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, NON_PARSE_EXCEPTION, args), exception); sessionLoaderException.setErrorCode(NON_PARSE_EXCEPTION); return sessionLoaderException; }
public static SessionLoaderException serverPlatformNoLongerSupported(String serverPlatformClassName) { Object[] args = { serverPlatformClassName }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, SERVER_PLATFORM_NO_LONGER_SUPPORTED, args)); sessionLoaderException.setErrorCode(SERVER_PLATFORM_NO_LONGER_SUPPORTED); return sessionLoaderException; }
public static SessionLoaderException unexpectedValueOfTag(String nodeValue, String parentNode) { Object[] args = { nodeValue, parentNode }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, UN_EXPECTED_VALUE_OF_TAG, args)); sessionLoaderException.setErrorCode(UN_EXPECTED_VALUE_OF_TAG); return sessionLoaderException; }
public static SessionLoaderException unknownAttributeOfTag(String nodeName) { Object[] args = { nodeName }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, UNKNOWN_ATTRIBUTE_OF_TAG, args)); sessionLoaderException.setErrorCode(UNKNOWN_ATTRIBUTE_OF_TAG); return sessionLoaderException; }
public static SessionLoaderException couldNotFindProjectXml(String fileName) { Object[] args = { fileName }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, COULD_NOT_FIND_PROJECT_XML, args)); sessionLoaderException.setErrorCode(COULD_NOT_FIND_PROJECT_XML); return sessionLoaderException; }
public static SessionLoaderException finalException(Vector exceptionList) { Object[] args = { new Integer(exceptionList.size()) }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, FINAL_EXCEPTION, args)); sessionLoaderException.setErrorCode(FINAL_EXCEPTION); sessionLoaderException.setExceptionList(exceptionList); return sessionLoaderException; }
public static SessionLoaderException failedToLoadProjectXml(String fileName, Throwable exception) { Object[] args = { fileName }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, FAILED_TO_LOAD_PROJECT_XML, args), exception); sessionLoaderException.setErrorCode(FAILED_TO_LOAD_PROJECT_XML); return sessionLoaderException; }
public static SessionLoaderException unkownTagAtNode(String tagName, String nodeName, Throwable exception) { Object[] args = { tagName, nodeName }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, UNKNOWN_TAG, args), exception); sessionLoaderException.setErrorCode(UNKNOWN_TAG); return sessionLoaderException; }
public static SessionLoaderException failedToParseXML(String message, Throwable exception) { Object[] args = { message }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, XML_SCHEMA_PARSING_ERROR, args), exception); sessionLoaderException.setErrorCode(XML_SCHEMA_PARSING_ERROR); return sessionLoaderException; }
public static SessionLoaderException serverPlatformNoLongerSupported(String serverPlatformClassName) { Object[] args = { serverPlatformClassName }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, SERVER_PLATFORM_NO_LONGER_SUPPORTED, args)); sessionLoaderException.setErrorCode(SERVER_PLATFORM_NO_LONGER_SUPPORTED); return sessionLoaderException; }
public static SessionLoaderException failedToParseXML(String message, Throwable exception) { Object[] args = { message }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, XML_SCHEMA_PARSING_ERROR, args), exception); sessionLoaderException.setErrorCode(XML_SCHEMA_PARSING_ERROR); return sessionLoaderException; }
public static SessionLoaderException unexpectedValueOfTag(String nodeValue, String parentNode) { Object[] args = { nodeValue, parentNode }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, UN_EXPECTED_VALUE_OF_TAG, args)); sessionLoaderException.setErrorCode(UN_EXPECTED_VALUE_OF_TAG); return sessionLoaderException; }
public static SessionLoaderException failedToLoadProjectClass(String className, Throwable exception) { Object[] args = { className }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, UNABLE_TO_LOAD_PROJECT_CLASS, args), exception); sessionLoaderException.setErrorCode(UNABLE_TO_LOAD_PROJECT_CLASS); return sessionLoaderException; }
public static SessionLoaderException failedToLoadTag(String parentNode, String nodeValue, Throwable exception) { Object[] args = { parentNode, nodeValue }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, UNABLE_TO_PROCESS_TAG, args), exception); sessionLoaderException.setErrorCode(UNABLE_TO_PROCESS_TAG); return sessionLoaderException; }
public static SessionLoaderException nonParseException(Throwable exception) { Object[] args = { }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, NON_PARSE_EXCEPTION, args), exception); sessionLoaderException.setErrorCode(NON_PARSE_EXCEPTION); return sessionLoaderException; }
public static SessionLoaderException serverPlatformNoLongerSupported(String serverPlatformClassName) { Object[] args = { serverPlatformClassName }; SessionLoaderException sessionLoaderException = new SessionLoaderException(ExceptionMessageGenerator.buildMessage(SessionLoaderException.class, SERVER_PLATFORM_NO_LONGER_SUPPORTED, args)); sessionLoaderException.setErrorCode(SERVER_PLATFORM_NO_LONGER_SUPPORTED); return sessionLoaderException; }