오늘의 개떡 같은 벤지의 TIP - Script

스크립트에도
try .... catch ... finally  가 있다

[ 샘플 ]---------------------------------------

<script>
function func_trytest() {
  try {
      external.GetBgWinScanner( progID, LocID, CmdNo, Cmd2No );
  }
  catch (e) {
      alert('   그누와 함께 하는 당신 .. 너무 이쁘다아~~\n\n   -[ 상세 에러내용 ]-\n\n  '+e);
      // console.log("caught error: "+e); return true;}
  }
  finally {
    alert('빠빠시~~');
  }
}

func_trytest();
<script>





아래의 내용 위치 : http://www.keynote.com/mykeynote/help/errors_internal_external.asp

[ External Error Code ]---------------------------------------
Internal Error NumberInternal Error NameExternal Error NumberExternal Error NameAffects Availability
-99503HTML DOM JS syntax error-99503HTML DOM JS syntax errorY
-99502Invalid Exclude Navigate Error Regular Expression.-99900Misc. ErrorsN
-99501Invalid Include Navigate Error Regular Expression.-99900Misc. ErrorsN
-99400Unknown Error in Firefox-99900Misc. ErrorsN
-99216JavaScript Syntax Error-1010Nav. FailedY
-99215Error in Advanced JavaScript Step-1010Nav. FailedY
-99214Exception occurred in After Action Advanced JavaScript-1010Nav. FailedY
-99213Exception occurred in Before Action Advanced JavaScript-1010Nav. FailedY
-99212Error in After Action Advanced JavaScript-1010Nav. FailedY
-99211Error in Before Action Advanced JavaScript-1010Nav. FailedY
-99204Exception occurred in After Script Advanced JavaScript-1010Nav. FailedY
-99203Exception occurred in Before Script Advanced JavaScript-1010Nav. FailedY
-99202Error in After Script Advanced JavaScript-1010Nav. FailedY
-99201Error in Before Script Advanced JavaScript-1010Nav. FailedY
-99200The execution of a JavaScript block in the transaction script failed-1010Nav. FailedY
-99102Error Page Found-99102Error Page FoundY
..........................
..........................
..........................

무지 많습니다~~~



[ Mobile Web Perspective Errors ]----------------------------

Internal Error NumberInternal Error NameExternal
Error
Number
External Error NameAffects
Availability
806Authentification failed. Make sure you have the correct login and password. 806Authentication FailedY
807Cannot configure network layer. Cannot configure the network layer protocols.807Cannot Configure Network LayerY
813Gateway not reachable. 813Gateway Not ReachableY
818Code PressKey (DTMF) Error Code. 818Press Key ErrorY
823Cannot resolve proxy host name (DNS failed)823Proxy DNS FailedY
825Proxy connection failed: check the profile proxy settings (address and port)825Proxy Connection FailedY
826Direct HTTP connection failed: check the URL host name and port826Direct HTTP Connection FailedY
831Abort invalid PDU.831Abort Invalid PDUY
832Abort invalid TID.832Abort Invalid TIDY
833Abort class2 not implemented.833Abort Class2 Not ImplementedY
834Abort SAR not implemented.834Abort SAR Not ImplementedY
835Abort user acknowledgments not supported.835Abort Acknowledgments UnsupportedY
836Abort version 1.836Abort Version 1Y
837Capacity exceeded.837Capacity ExceededY
838Abort acknowledgments not received.838Acknowledgments Not ReceivedY

..........................
..........................
..........................

이건 위의 내용보다는 작지만 ~~~

|

댓글 5개

아침일찍이라 접수가 잘 안되는 1인 ^^
좋은 정보 감사합니다.!!
굿ㅋㅋ
봐도 모르는 1인~ ㅜㅜ
IE 에서 많이 썼죠.
망할 IE 메모리 릭 때문에
try {
return $obj;
}
catch () {}
finally { delete $obj; }
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

+
제목 글쓴이 날짜 조회
12년 전 조회 3,267
12년 전 조회 904
12년 전 조회 1,425
12년 전 조회 1,120
12년 전 조회 1,115
12년 전 조회 1,225
12년 전 조회 1,080
12년 전 조회 1,042
12년 전 조회 1,147
12년 전 조회 1,170
12년 전 조회 1,225
12년 전 조회 1,304
12년 전 조회 1,096
12년 전 조회 1,090
12년 전 조회 1,393
12년 전 조회 1,103
12년 전 조회 944
12년 전 조회 845
12년 전 조회 977
12년 전 조회 1,038
12년 전 조회 1,084
12년 전 조회 1,051
12년 전 조회 975
12년 전 조회 1,443
12년 전 조회 911
12년 전 조회 1,980
12년 전 조회 1,208
12년 전 조회 1,284
12년 전 조회 1,548
12년 전 조회 1,805