Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

flexÇëÇóÖÐץȡJAVAÒì³£ÐÅÏ¢

     ÈçºÎ»ñÈ¡LCDSÇëÇó¹ý³ÌÖÐJAVAÅ׳öÀ´µÄExceptionÄØ£¿ µ±flexͨ¹ýÇëÇó¶ÔÏóÇëÇó·þÎñ¶ËµÄʱºò£¬ÇëÇó³É¹¦»á·¢mx.rpc.events.ResultEventʼþ£¬Óöµ½·þÎñ¶ËÒì³£»òÆäËû·Ç200µÄHTTP״̬Â루ÀýÈç404£¬403£©Ôò»á·¢mx.rpc.events.FaultEventʼþ£¬µ«ÇëÇóʧ°ÜÊÇÒòΪʲôԭÒòÄØ£¿ÒòΪ²»Í¬µÄÔ­Òò¿ÉÄܵ¼Ö½çÃæÉϲ»Í¬µÄ´¦Àí²Ù×÷£¬×î¼òµ¥µÄ°ì·¨¾ÍÊÇ´Ó·þÎñ¶ËµÄÒì³£ÖлñÈ¡£¬ÎÒÃÇ¿ÉÒÔ°ÑÕâЩÐÅÏ¢·ÅÔÚÒì³£ÖУ¬ÓÉÇ°¶ËFLEXÈ¥¶ÁÈ¡²¢´¦Àí£»
  FaultEventʼþÖÐÓÐÒ»¸ömessageÊôÐÔ£¬ÊÇÒ»¸öÀàÐÍΪmx.messaging.messages.ErrorMessageµÄÏûÏ¢À࣬¸ÃÀàÖÐÓÐÒ»¸örootCauseÊôÐÔ£¬Òì³£µÄÏà¹ØÐÅÏ¢¶¼·ÅÔÚÕâ¸ö¶ÔÏóÖУ¬ÏȽ¨Ò»¸ö×Ô¶¨ÒåµÄJAVAÒì³££º
package com.hanover.ml.servicebroker;
public class CustomException extends Exception {
private int errorCode;
private String errorDesc;

public int getErrorCode(){
return errorCode;
}

public void setErrorCode(int value){
errorCode = value;
}

public String getErrorDesc(){
return errorDesc;
}

public void setErrorDesc(String value){
errorDesc = value;
}

}
 
 
ÀïÃæÓÐÁ½¸öÊôÐÔ£¬·Ö±ðÊÇerrorCodeºÍerrorDesc£¬·Ö±ð¿ÉÒÔ´ú±íÒì³£µÄÖÖÀàºÍÃèÊö£¬È»ºóÎÒÃÇÔÚµ÷Ó÷½·¨ÖÐץȡµ½ËùÓÐÒì³£²¢×ª³ÉÕâ¸ö×Ô¶¨ÒåµÄCustomException£º
public void getExceptionTest() throws CustomException
{
try{
//function content
//Âß¼­Òì³£
CustomException ce = new CustomException();
ce.setErrorCode(201);
ce.setErrorDesc("¸Ã¼Ç¼Òѱ»É¾³ý");
throw ce;
}catch(NullPointerException ne){
CustomException ce = new CustomException();
ce.setErrorCode(101);
ce.setErrorDesc("type1 error desc");
throw ce;
}catch(Exception e){
CustomException ce = new CustomException();
ce.setErrorCode(101);
ce.setErrorDesc(e.getMessage());
throw ce;
}

½Ó×ÅÔÚflex¶ËµÄfaultʼþÖлñÈ¡Òì³£ÐÅÏ¢£º
public function fault(event:Object):void
{
var faultEvent:FaultEvent = event as FaultEvent;
var errorMessage:ErrorMessage = faultEvent.message as ErrorMessage;
if(errorMessage && errorMessage.rootCause)
{


Ïà¹ØÎĵµ£º

ÀûÓÃJAVA²Ù×÷EXCELÎļþ

2003 Äê 1 ÔÂ 11 ÈÕ
ʹÓÃWindows²Ù×÷ϵͳµÄÅóÓѶÔExcel£¨µç×Ó±í¸ñ£©Ò»¶¨²»»áÄ°Éú£¬µ«ÊÇҪʹÓÃJavaÓïÑÔÀ´²Ù×ÝExcelÎļþ²¢²»ÊÇÒ»¼þÈÝÒ×µÄÊ¡£ÔÚWebÓ¦ÓÃÈÕÒæÊ¢ÐеĽñÌ죬ͨ¹ýWebÀ´²Ù×÷ExcelÎļþµÄÐèÇóÔ½À´Ô½Ç¿ÁÒ£¬Ä¿Ç°½ÏΪÁ÷ÐеIJÙ×÷ÊÇÔÚJSP»òServlet Öд´½¨Ò»¸öCSV £¨comma separated values£©Îļþ£¬²¢½«Õâ¸öÎļþÒÔMIME£¬tex ......

´ÓÓïÑÔÉý¼¶ÎªÆ½Ì¨£ºJAVAÀÏÒÓ£¬ÉÐÄÜ·¹·ñ£¿

JavaÔ´ÓÚ1991ÄêµÄÒ»¸ö»ú¶¥ºÐÏîÄ¿£¬²¢ÓÉSunÔÚ1995Äê·¢²¼ÁË1.0°æ±¾£¬µ½½ñÌìËãÏÂÀ´£¬Ò²ÒªÓÐ20ÄêµÄʱ¼äÁË¡£JDK1.3-->JDK1.4-->JDK5ÕâÁ½´Î°æ±¾Éý¼¶£¬Ê¹µÃjavaÓïÑԵõ½Á˼«´óµÄÍêÉÆ£¬µ«´ËºóµÄJDK6ºÍÉÐδÕýʽ·¢²¼µÄJDK7£¬²¢Î´¸øÈËÌ«¶àµÄ¾ªÏ²£¬ÖÁÉÙÎÒÊÇÕâÖָоõ¡£Æäʵ´Ó×î½ü¼¸ÄêJVM¼æÈÝÓïÑԵİٻ¨Æë·Å¾Í¿ÉÒÔ¿´³öÀ´¶ËÄߣºJAVAÔ ......

Java´íÎó´¦Àí´ó¼¯ºÏ


0¡¢ ÐèÒª±êʶ·û
a) ²»ÔÚº¯ÊýÄÚ
1¡¢ ·Ç·¨±í´ïʽ¿ªÊ¼
b) ¿ÉÄÜ:¶ªÊ§À¨ºÅ .
2. no data found
a) ¿ÉÄÜ:setInt(1,100)ÖÐ,ûÓÐ100Õâ¸öÖµ
3. ÕÒ²»µ½·ûºÅ
a) ¿ÉÄÜ:ûµ¼Èë°ü
4. Ö¸¶¨ÁËÎÞЧURL
a) ¿ÉÄÜ:Êý¾Ý¿âÃû»òIP´íÎó,¼´Á¬½Ó³ö´í
5. Àà·¾¶Ã»ÓÐÕÒµ½
a) ¿ÉÄÜ: ClassNotFoundException: oracle.jdbc.driver.OracleDriv ......

JavaÖеĸ¡µãÊý·ÖÎö

JavaÖеĸ¡µãÊý·ÖÎö
¡¡¡¡¸¡µãÊý·ÖΪµ¥¾«¶ÈºÍË«¾«¶È,JavaÖеĵ¥¾«¶ÈºÍË«¾«¶È·Ö±ðΪfloatºÍdouble.ÄãÃÇÖªµÀfloatºÍdoubleÊÇÔõô´æ´¢µÄÂð?
¡¡¡¡floatÕ¼4¸ö×Ö½Ú,doubleÕ¼8¸ö×Ö½Ú,ΪÁË·½±ãÆð¼û,ÕâÀï¾ÍÖ»ÌÖÂÛfloatÀàÐÍ.
¡¡¡¡floatÆäʵºÍÒ»¸öintÐ͵ĴóСÊÇÒ»ÑùµÄ,Ò»¹²32λ,µÚһλ±íʾ·ûºÅ,2-9±íʾָÊý,ºóÃæ23λ±íʾСÊý²¿·Ö.ÕâÀ ......

javaÐéÄâ»ú·½Ãæ

Ò»¡¢Àà×°ÔØÆ÷£ºÍ¨¹ý·Ö±ðʹÓò»Í¬µÄÀà×°ÔØÆ÷×°ÔØ¿É¿¿µÄ°üºÍ²»¿É¿¿µÄ°üÀ´ÊµÏÖ°² È«ÐÔ¡£
 
ÔÚ1.2°æ±¾µÄJavaÐéÄâ»ú¿ªÊ¼ÔËÐÐʱ£¬ÔÚÓ¦ÓóÌÐòÆô¶¯ÒÔÇ°£¬ËüÖÁÉÙ´´½¨Ò»¸öÓû§×Ô¶¨ÒåÀà×°ÔØÆ÷£¬Ò²¿ÉÄÜÊǶà¸ö¡£ËùÓÐÕâЩÀà×°ÔØÆ÷±»Á¬½ÓÔÚÒ»¸öË«Ç×--º¢×ӵĹØϵÁ´ÖУ¬ÔÚÕâÌõÁ´µÄ¶¥¶ËÊÇÆô¶¯Àà×°ÔØÆ÷£¬Ä©¶ËÊÇÒ»¸ö±»³ÆΪ“ϵͳÀà× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ