Index: TECH/Context/RuntimeContext.cls.xml =================================================================== diff -u -r14 -r62 --- TECH/Context/RuntimeContext.cls.xml (.../RuntimeContext.cls.xml) (revision 14) +++ TECH/Context/RuntimeContext.cls.xml (.../RuntimeContext.cls.xml) (revision 62) @@ -27,11 +27,6 @@ - -%String -1 - - 1 TECH.Context.RuntimeContext @@ -47,18 +42,6 @@ ]]> - -GebruikerID:%String - - - - -%String - - - %String + +%String + + + Werkt wanneer oproep via webservice of telnet binnenkomt binnen het netwerk. @@ -86,58 +93,48 @@ c:\"_FileName // ping vervangen door nslookup - Set Ok=$ZF(-1,"NSLOOKUP "_IP_" > c:\"_FileName) + Set IP = ..GeefIP() + If (IP '= "") + { + Set FileName="PING"_$J_$$UPTRIMAN^vhRtn1(IP) + Set Exec="NSLOOKUP "_IP_" > c:\"_FileName // ping vervangen door nslookup + Set Ok=$ZF(-1,"NSLOOKUP "_IP_" > c:\"_FileName) - Set Stream=##class(%FileCharacterStream).%New() - Set Stream.Filename="c:\"_FileName + Set Stream=##class(%FileCharacterStream).%New() + Set Stream.Filename="c:\"_FileName - Do Stream.ReadLine() - Do Stream.ReadLine() - Do Stream.ReadLine() - Set ComputerNaamOutput = Stream.ReadLine() + Do Stream.ReadLine() + Do Stream.ReadLine() + Do Stream.ReadLine() + Set ComputerNaamOutput = Stream.ReadLine() - Set PiecesIterator = ##class(TECH.PiecesIterator).%New(ComputerNaamOutput," ") - While (PiecesIterator.HasNext()) - { - Set ..ComputerNaam = PiecesIterator.Next() - } + Set PiecesIterator = ##class(TECH.PiecesIterator).%New(ComputerNaamOutput," ") + While (PiecesIterator.HasNext()) + { + Set ..ComputerNaam = PiecesIterator.Next() + } - Set Stream = "" + Set Stream = "" - Do ##class(%File).Delete("c:\"_FileName) + Do ##class(%File).Delete("c:\"_FileName) + } } + + If ##class(TECH.StringUtils).ToUpper(..ComputerNaam)="LOCALHOST" Set ..ComputerNaam=$$$Server } - if $zcvt(..ComputerNaam,"U")="LOCALHOST" set ..ComputerNaam=$$$Server_".vanhoecke.be" Quit ..ComputerNaam ]]> Index: TECH/ExceptionHandler.cls.xml =================================================================== diff -u -r9 -r62 --- TECH/ExceptionHandler.cls.xml (.../ExceptionHandler.cls.xml) (revision 9) +++ TECH/ExceptionHandler.cls.xml (.../ExceptionHandler.cls.xml) (revision 62) @@ -10,8 +10,7 @@ Exception:TECH.IException @@ -38,13 +37,13 @@ } If (i < ExceptionTypes) { - Set Exception = %Exception Set %Exception = "" Set $ECODE = "" } Else { - ZTRAP $ZERROR + Set Exception = %Exception + Throw ..ExceptieOudNaarNieuw(Exception) } } Else @@ -54,10 +53,6 @@ Set $ECODE = "" } } - - Set Stack = ##class(TECH.Process).GeefStackTrace() - Do ##class(vhLib.Logger).%New("CATCH").Error("",Stack) - Quit Exception ]]> @@ -85,9 +80,19 @@ Set %Exception = Exceptie } - ZTRAP $ZERROR + Set Exception = %Exception + Throw ..ExceptieOudNaarNieuw(Exception) ]]> + + +1 +Exceptie:TECH.Exceptions.Exception +1 +%Exception.AbstractException + + Index: TECH/Exceptions/Exception.cls.xml =================================================================== diff -u -r9 -r62 --- TECH/Exceptions/Exception.cls.xml (.../Exception.cls.xml) (revision 9) +++ TECH/Exceptions/Exception.cls.xml (.../Exception.cls.xml) (revision 62) @@ -35,7 +35,7 @@ %Status @@ -82,6 +82,21 @@ ]]> + +StackLevel +1 +%String + "_UitgevoerdeCode + } + Quit Txt +]]> + + %String + + +%Exception.AbstractException + + +TECH.Exceptions.Exception +1 + + + +pName:%String="",pCode:%String="",pLocation:%String="",pData:%String="",pInnerException:%Exception.AbstractException=$$$NULLOREF,Exceptie:TECH.Exceptions.Exception +1 +%Status + + + + + +This returns a string that represents the exception. Users should feel free +to modify the format in subclasses +pLevel:%Integer=0 + + + + +%String + + + + + +