Skip to content

Commit

Permalink
Preserve the receiver of the exception and not use class binding of t…
Browse files Browse the repository at this point in the history
…he method
  • Loading branch information
noha committed Jun 22, 2023
1 parent cfdc16b commit 9637234
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/SnapDump-Core/SDException.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,12 @@ SDException >> initializeExceptionProperties [
]

{ #category : #initialization }
SDException >> initializeFromClassName: aName method: aSmalltalkMethod [
SDException >> initializeFromClassName: aName receiver: aReceiver method: aSmalltalkMethod [

exceptionSignalerClassName := aReceiver
ifNotNil: [ aReceiver class name asString ]
ifNil: [ aSmalltalkMethod classBinding value asString ].

exceptionSignalerClassName := aSmalltalkMethod classBinding value asString.
exceptionSignalerSelector := aSmalltalkMethod selector asString.
exceptionClassName := aName
]
Expand Down

0 comments on commit 9637234

Please sign in to comment.