1
0
Prechádzať zdrojové kódy

adds missing methods HLErrorHandler class >> handleError:

Nicolas Petton 12 rokov pred
rodič
commit
bea588da45

+ 13 - 0
js/Helios-Debugger.deploy.js

@@ -613,6 +613,19 @@ messageSends: ["on:do:", "handleError:", "new", "open", "on:", "context"]}),
 smalltalk.HLErrorHandler);
 
 
+smalltalk.addMethod(
+smalltalk.method({
+selector: "handleError:",
+fn: function (anError){
+var self=this;
+return smalltalk.withContext(function($ctx1) { 
+var $1;
+$1=_st(_st(self)._new())._handleError_(anError);
+return $1;
+}, function($ctx1) {$ctx1.fill(self,"handleError:",{anError:anError},smalltalk.HLErrorHandler.klass)})},
+messageSends: ["handleError:", "new"]}),
+smalltalk.HLErrorHandler.klass);
+
 
 smalltalk.addClass('HLStackListWidget', smalltalk.HLToolListWidget, [], 'Helios-Debugger');
 smalltalk.addMethod(

+ 18 - 0
js/Helios-Debugger.js

@@ -805,6 +805,24 @@ referencedClasses: ["Error", "ErrorHandler", "HLDebugger"]
 smalltalk.HLErrorHandler);
 
 
+smalltalk.addMethod(
+smalltalk.method({
+selector: "handleError:",
+category: 'error handling',
+fn: function (anError){
+var self=this;
+return smalltalk.withContext(function($ctx1) { 
+var $1;
+$1=_st(_st(self)._new())._handleError_(anError);
+return $1;
+}, function($ctx1) {$ctx1.fill(self,"handleError:",{anError:anError},smalltalk.HLErrorHandler.klass)})},
+args: ["anError"],
+source: "handleError: anError\x0a\x09^ self new handleError: anError",
+messageSends: ["handleError:", "new"],
+referencedClasses: []
+}),
+smalltalk.HLErrorHandler.klass);
+
 
 smalltalk.addClass('HLStackListWidget', smalltalk.HLToolListWidget, [], 'Helios-Debugger');
 smalltalk.addMethod(

+ 6 - 0
st/Helios-Debugger.st

@@ -303,6 +303,12 @@ handleError: anError
 			ErrorHandler new handleError: error ]
 ! !
 
+!HLErrorHandler class methodsFor: 'error handling'!
+
+handleError: anError
+	^ self new handleError: anError
+! !
+
 HLToolListWidget subclass: #HLStackListWidget
 	instanceVariableNames: ''
 	package: 'Helios-Debugger'!