touched up some primitive functions
This commit is contained in:
@ -39,7 +39,7 @@ TODO: can i convert 'thisProcess primError' to a relevant exception?
|
||||
{
|
||||
^(self class name) & ' - ' & self.messageText.
|
||||
}
|
||||
|
||||
|
||||
method signal
|
||||
{
|
||||
| exctx exblk retval actpos ctx |
|
||||
@ -487,6 +487,11 @@ extend Apex
|
||||
if (msg isNil) { msg := ec asString }.
|
||||
if (method notNil) { msg := msg & ' - ' & (method owner name) & '>>' & (method name) }.
|
||||
|
||||
### TODO: convert an exception to a more specific one depending on the error code.
|
||||
###if (ec == Error.Code.ERANGE) { self index: index outOfRange: (self basicSize) }
|
||||
### elsif (ec == Error.Code.EPERM) { self messageProhibited: method name }
|
||||
### elsif (ec == Error.Code.ENOIMPL) { self subclassResponsibility: method name }.
|
||||
|
||||
(PrimitiveFailureException (* in: method *) withErrorCode: ec) signal: msg.
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user