Browse Source

adds missing methods HLErrorHandler class >> handleError:

Nicolas Petton 12 years ago
parent
commit
bea588da45
3 changed files with 37 additions and 0 deletions
  1. 13 0
      js/Helios-Debugger.deploy.js
  2. 18 0
      js/Helios-Debugger.js
  3. 6 0
      st/Helios-Debugger.st

+ 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'!