Index: TECH/Exceptions/Exception.cls.xml
===================================================================
diff -u -r62 -r64
--- TECH/Exceptions/Exception.cls.xml (.../Exception.cls.xml) (revision 62)
+++ TECH/Exceptions/Exception.cls.xml (.../Exception.cls.xml) (revision 64)
@@ -35,7 +35,7 @@
%Status
@@ -82,21 +82,6 @@
]]>
-
-StackLevel
-1
-%String
- "_UitgevoerdeCode
- }
- Quit Txt
-]]>
-
-
%String
+
+%String
+1
+
+
1
TECH.Context.RuntimeContext
@@ -42,6 +47,18 @@
]]>
+
+GebruikerID:%String
+
+
+
+
+%String
+
+
+
%String
-
-%String
-
-
-
Werkt wanneer oproep via webservice of telnet binnenkomt binnen het netwerk.
@@ -93,48 +86,58 @@
c:\"_FileName // ping vervangen door nslookup
- Set Ok=$ZF(-1,"NSLOOKUP "_IP_" > c:\"_FileName)
+ 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 -r62 -r64
--- TECH/ExceptionHandler.cls.xml (.../ExceptionHandler.cls.xml) (revision 62)
+++ TECH/ExceptionHandler.cls.xml (.../ExceptionHandler.cls.xml) (revision 64)
@@ -10,7 +10,8 @@
Exception:TECH.IException
@@ -37,13 +38,13 @@
}
If (i < ExceptionTypes)
{
+ Set Exception = %Exception
Set %Exception = ""
Set $ECODE = ""
}
Else
{
- Set Exception = %Exception
- Throw ..ExceptieOudNaarNieuw(Exception)
+ ZTRAP $ZERROR
}
}
Else
@@ -53,6 +54,10 @@
Set $ECODE = ""
}
}
+
+ Set Stack = ##class(TECH.Process).GeefStackTrace()
+ Do ##class(vhLib.Logger).%New("CATCH").Error("",Stack)
+
Quit Exception
]]>
@@ -80,19 +85,9 @@
Set %Exception = Exceptie
}
- Set Exception = %Exception
- Throw ..ExceptieOudNaarNieuw(Exception)
+ ZTRAP $ZERROR
]]>
-
-
-1
-Exceptie:TECH.Exceptions.Exception
-1
-%Exception.AbstractException
-
-
FishEye: Tag 64 refers to a dead (removed) revision in file `TECH/Exceptions/VerpakteException.cls.xml'.
FishEye: No comparison available. Pass `N' to diff?