Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
«EXTENSION java::Naming»
«EXTENSION java::GeneratorCommons»
«EXTENSION entity::ModelProperties»
«IMPORT uml»
«IMPORT JMM»
«IMPORT java»
«IMPORT entity»
«DEFINE ApplicationException FOR ApplicationException»
// Application exception.
«FILE packagePath()+"/"+name+".java" src_gen»
«getFileHeader()»
package «packageName()»;
import com.anaptecs.jeaf.xfun.api.errorhandling.ApplicationException;
import com.anaptecs.jeaf.xfun.api.errorhandling.ErrorCode;
import com.anaptecs.jeaf.xfun.api.info.VersionInfo;
import com.anaptecs.jeaf.xfun.api.XFun;
/**
* Application exception that is used in order to indicate application specific problems.
*
* @see com.anaptecs.jeaf.xfun.api.errorhandling.ApplicationException
*/
«EXPAND java::Helper::GenerateDeprecationAnnotation-»
public final class «name» extends ApplicationException {
/**
* Generated serial version uid for this class.
*/
private static final long serialVersionUID = 1L;
/**
* Constructor initializes this application exception with the passed error code.
*
* @param pErrorCode Error code identifying the occurred problem. Among other things the error code is used to determine
* the corresponding error message. The parameter must not be null.
*/
public «name»(ErrorCode pErrorCode) {
super(pErrorCode);
}
/**
* Constructor initializes this application exception with the passed error code and message parameters.
*
* @param pErrorCode Error code identifying the occurred problem. Among other things the error code is used to
* determine the corresponding error message. The parameter must not be null.
* @param pMessageParameters String array contains all values that are used to create a parameterized error message.
* The message parameters usually describe the concrete context in which the exception occurred. The parameter may be
* null.
*/
public «name»(ErrorCode pErrorCode, String... pMessageParameters) {
super(pErrorCode, pMessageParameters);
}
/**
* Constructor initializes this application exception with the passed error code and Throwable object that caused this
* exception.
*
* @param pErrorCode Error code identifying the occurred problem. Among other things the error code is used to
* determine the corresponding error message. The parameter must not be null.
* @param pCause Throwable object that caused this exception. The parameter may be null.
*/
public «name»(ErrorCode pErrorCode, Throwable pCause) {
super(pErrorCode, pCause);
}
/**
* Constructor initializes this application exception with the passed error code, message parameters and Throwable object
* that caused this exception.
*
* @param pErrorCode Error code identifying the occurred problem. Among other things the error code is used to
* determine the corresponding error message. The parameter must not be null.
* @param pCause Throwable object that caused this exception. The parameter may be null.
* @param pMessageParameters String array contains all values that are used to create a parameterized error message.
* The message parameters usually describe the concrete context in which the exception occurred. The parameter may be
* null.
*/
public «name»(ErrorCode pErrorCode, Throwable pCause, String... pMessageParameters ) {
// Call empty constructor of base class.
super(pErrorCode, pCause, pMessageParameters);
}
/**
* Constructor initializes this application exception with the passed error code and Throwable object that caused this
* exception.
*
* @param pErrorCode Error code identifying the occurred problem. Among other things the error code is used to
* determine the corresponding error message. The parameter must not be null.
* @param pTechnicalDetails Technical details about an exception. They might be helpful to solve the issue / root
* cause. This information is not intended to be shown to users but will be added to log files for example.
* @param pCause Throwable object that caused this exception. The parameter may be null.
* @param pMessageParameters String array contains all values that are used to create a parameterized error message.
* The message parameters usually describe the concrete context in which the exception occurred. The parameter may be
* null.
*/
public «name»( ErrorCode pErrorCode, String pTechnicalDetails, Throwable pCause,
String... pMessageParameters ) {
super(pErrorCode, pTechnicalDetails, pCause, pMessageParameters);
}
/**
* Method resolves the version the JEAF framework.
*
* @return VersionInfo Information about the used JEAF version. The method never returns null.
*/
protected VersionInfo resolveVersionInfo() {
return XFun.getVersionInfo();
}
}
«ENDFILE»
«ENDDEFINE»
// System exception.
«DEFINE SystemException FOR SystemException»
«FILE packagePath()+"/"+name+".java" src_gen»
«getFileHeader()»
package «packageName()»;
import com.anaptecs.jeaf.xfun.api.errorhandling.ErrorCode;
import com.anaptecs.jeaf.xfun.api.errorhandling.SystemException;
import com.anaptecs.jeaf.xfun.api.info.VersionInfo;
import com.anaptecs.jeaf.xfun.api.XFun;
/**
* System exception that is used in order to indicate technical problems.
*
* @see com.anaptecs.jeaf.xfun.api.errorhandling.SystemException
*/
«EXPAND java::Helper::GenerateDeprecationAnnotation-»
public final class «name» extends SystemException {
/**
* Generated serial version uid for this class.
*/
private static final long serialVersionUID = 1L;
/**
* Constructor initializes this system exception with the passed error code.
*
* @param pErrorCode Error code identifying the occurred problem. Among other things the error code is used to
* determine the corresponding error message. The parameter must not be null.
*/
public «name»(ErrorCode pErrorCode) {
super(pErrorCode);
}
/**
* Constructor initializes this system exception with the passed error code and message parameters.
*
* @param pErrorCode Error code identifying the occurred problem. Among other things the error code is used to
* determine the corresponding error message. The parameter must not be null.
* @param pMessageParameters String array contains all values that are used to create a parameterized error message.
* The message parameters usually describe the concrete context in which the exception occurred. The parameter may be
* null.
*/
public «name»(ErrorCode pErrorCode, String... pMessageParameters) {
super(pErrorCode, pMessageParameters);
}
/**
* Constructor initializes this system exception with the passed error code and Throwable object that caused this
* exception.
*
* @param pErrorCode Error code identifying the occurred problem. Among other things the error code is used to
* determine the corresponding error message. The parameter must not be null.
* @param pCause Throwable object that caused this exception. The parameter may be null.
*/
public «name»(ErrorCode pErrorCode, Throwable pCause) {
super(pErrorCode, pCause);
}
/**
* Constructor initializes this system exception with the passed error code, message parameters and Throwable object
* that caused this exception.
*
* @param pErrorCode Error code identifying the occurred problem. Among other things the error code is used to
* determine the corresponding error message. The parameter must not be null.
* @param pMessageParameters String array contains all values that are used to create a parameterized error message.
* The message parameters usually describe the concrete context in which the exception occurred. The parameter may be
* null.
* @param pCause Throwable object that caused this exception. The parameter may be null.
*/
public «name»(ErrorCode pErrorCode, Throwable pCause, String... pMessageParameters) {
// Call empty constructor of base class.
super(pErrorCode, pCause, pMessageParameters);
}
/**
* Constructor initializes this system exception with the passed error code and Throwable object that caused this
* exception.
*
* @param pErrorCode Error code identifying the occurred problem. Among other things the error code is used to
* determine the corresponding error message. The parameter must not be null.
* @param pTechnicalDetails Technical details about an exception. They might be helpful to solve the issue / root
* cause. This information is not intended to be shown to users but will be added to log files for example.
* @param pCause Throwable object that caused this exception. The parameter may be null.
* @param pMessageParameters String array contains all values that are used to create a parameterized error message.
* The message parameters usually describe the concrete context in which the exception occurred. The parameter may be
* null.
*/
public «name»( ErrorCode pErrorCode, String pTechnicalDetails, Throwable pCause,
String... pMessageParameters ) {
super(pErrorCode, pTechnicalDetails, pCause, pMessageParameters);
}
/**
* Method resolves the version the JEAF framework.
*
* @return VersionInfo Information about the used JEAF version. The method never returns null.
*/
protected VersionInfo resolveVersionInfo() {
return XFun.getVersionInfo();
}
}
«ENDFILE»
«ENDDEFINE»