本文整理了Java中org.jbundle.model.Task.getLastError()
方法的一些代码示例,展示了Task.getLastError()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Task.getLastError()
方法的具体详情如下:
包路径:org.jbundle.model.Task
类名称:Task
方法名:getLastError
暂无
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
if (task != null)
strError = task.getLastError(m_iErrorCode);
if ((strError != null) && (strError.length() > 0))
break; // Yes, return the error message
代码示例来源:origin: org.jbundle.base.db/org.jbundle.base.db
if (task != null)
strError = task.getLastError(m_iErrorCode);
if ((strError != null) && (strError.length() > 0))
break; // Yes, return the error message
代码示例来源:origin: org.jbundle.base/org.jbundle.base
if (task != null)
strError = task.getLastError(m_iErrorCode);
if ((strError != null) && (strError.length() > 0))
break; // Yes, return the error message
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Display a dialog/status box with this error.
* @param iErrorCode The error code.
*/
public void displayError(int iErrorCode)
{
if (iErrorCode < -2)
{ // Error codes < -2 are usually user defined (and available at 'LastError')
Task task = this.getTask();//getAppletScreen().getScreenFieldView().getControl();
if (task != null)
{
String strError = task.getLastError(iErrorCode);
if ((strError != null) && (strError.length() > 0))
{
this.displayError(strError);
return;
}
}
}
DBException e = new DBException(iErrorCode);
this.displayError(e);
}
/**
代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.view.html
strMoveValue = Constants.BLANK;
String strError = this.getTask().getLastError(0);
if ((strError != null) && (strError.length() > 0))
strError = strError + " on " + strMoveValue;
代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model
/**
* Display a dialog/status box with this error.
* @param iErrorCode The error code.
*/
public void displayError(int iErrorCode)
{
if (iErrorCode < -2)
{ // Error codes < -2 are usually user defined (and available at 'LastError')
Task task = this.getTask();//getAppletScreen().getScreenFieldView().getControl();
if (task != null)
{
String strError = task.getLastError(iErrorCode);
if ((strError != null) && (strError.length() > 0))
{
this.displayError(strError);
return;
}
}
}
DBException e = new DBException(iErrorCode);
this.displayError(e);
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
/**
* Using this transport, send this message (using this processor) and (optionally) process the reply.
* @param internalTrxMessage The message to send.
* @param messageOutProcessor The message out processor.
*/
public void sendMessage(BaseMessage messageOut, BaseInternalMessageProcessor messageOutProcessor)
{
int iErrorCode = this.convertToExternal(messageOut, messageOutProcessor); // Convert my standard message to the external format for this message
BaseMessage messageReplyIn = null;
if (iErrorCode != DBConstants.NORMAL_RETURN)
{
String strMessageDescription = this.getTask().getLastError(iErrorCode);
if ((strMessageDescription == null) || (strMessageDescription.length() == 0))
strMessageDescription = "Error converting to external format";
messageReplyIn = BaseMessageProcessor.processErrorMessage(this, messageOut, strMessageDescription);
}
else
{
Utility.getLogger().info("sendMessage externalTrxMessage = " + messageOut);
messageReplyIn = this.sendMessageRequest(messageOut);
}
if (messageReplyIn != null) // No reply if null.
{
this.setupReplyMessage(messageReplyIn, messageOut, MessageInfoType.REPLY, MessageType.MESSAGE_IN);
Utility.getLogger().info("externalMessageReply: " + messageReplyIn);
this.processIncomingMessage(messageReplyIn, messageOut);
}
}
/**
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
if ((iErrorCode != DBConstants.NORMAL_RETURN) && (iErrorCode != Constants.READ_ACCESS))
String strError = this.getTask().getLastError(iErrorCode);
if ((strError == null)
|| (strError.length() == 0)
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
if (iErrorCode != DBConstants.NORMAL_RETURN)
strMessageDescription = this.getTask().getLastError(iErrorCode);
if ((strMessageDescription == null) || (strMessageDescription.length() == 0))
strMessageDescription = "Error converting to external format";
代码示例来源:origin: org.jbundle.base.screen/org.jbundle.base.screen.model
String strError = this.getTask().getLastError(iErrorCode);
if (strError != null)
if (sfStaticField != null)
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
if (iErrorCode != DBConstants.NORMAL_RETURN)
String strMessageDescription = this.getTask().getLastError(iErrorCode);
if ((strMessageDescription == null) || (strMessageDescription.length() == 0))
strMessageDescription = "Error converting to external format";
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
String strError = this.getTask().getLastError(iErrorCode);
if (strError != null)
if (sfStaticField != null)
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.booking.remote
throw new RemoteException(this.getTask().getLastError(errorCode));
if (objectID == null) // New booking
objectID = recBooking.getCounterField().getData();
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
|| (messageReplyIn.getExternalMessage().getRawData() == null))
String strMessageError = this.getTask().getLastError(iErrorCode);
if ((strMessageError == null) || (strMessageError.length() == 0))
strMessageError = "Error converting to internal format";
代码示例来源:origin: org.jbundle.base/org.jbundle.base.mixed
String strError = task.getLastError(iErrorCode);
this.getRecord(UserScreenRecord.kUserScreenRecordFile).getField(UserScreenRecord.kStatusLine).setString(strError);
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.db
strPMCErrorMessage = this.getTask().getLastError(iQuantity);
dCostPP = 0;
dPricePP = 0;
strSICErrorMessage = this.getTask().getLastError(iQuantity);
dCostPP = 0;
dPricePP = 0;
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.db
if ((this.getRecordOwner() != null)
&& (this.getRecordOwner().getTask() != null))
strErrorMessage = this.getRecordOwner().getTask().getLastError(iErrorCode);
else
strErrorMessage = "Inventory not available";
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.db
if ((this.getRecordOwner() != null)
&& (this.getRecordOwner().getTask() != null))
strErrorMessage = this.getRecordOwner().getTask().getLastError(iErrorCode);
else
strErrorMessage = "Inventory not available";
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.db
if (this.getRecordOwner() != null)
if (this.getRecordOwner().getTask() != null)
strErrorMessage = this.getRecordOwner().getTask().getLastError(iErrorCode);
((ProductMessageData)message.getMessageDataDesc(ProductRequest.PRODUCT_MESSAGE)).setRecordDataStatus(this, iStatusType, BaseDataStatus.NOT_VALID);
this.setErrorMessage(iStatusType, strErrorMessage);
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.booking.db
if (this.getRecordOwner() != null)
if (this.getRecordOwner().getTask() != null)
strErrorMessage = this.getRecordOwner().getTask().getLastError(iErrorCode);
((ProductMessageData)message.getMessageDataDesc(ProductRequest.PRODUCT_MESSAGE)).setRecordDataStatus(this, iStatusType, BaseDataStatus.NOT_VALID);
this.setErrorMessage(iStatusType, strErrorMessage);
内容来源于网络,如有侵权,请联系作者删除!