smalltalk
/
osmo-st-all
Archived
1
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
osmo-st-all/grease/Core/Exceptions.st

54 lines
1.5 KiB
Smalltalk

Error subclass: GRError [
<category: 'Grease-Core-Exceptions'>
<comment: 'This class provides consistent initialization and exception signaling behaviour across platforms. All platforms must provide the ANSI-standard signaling protocol on this class. #signal: can therefore be safely called on any subclass.
Packages that are using Seaside-Platform should usually subclass WAPlatformError instead of Error.'>
GRError class >> new [
<category: 'instance creation'>
^super new initialize
]
initialize [
<category: 'initialization'>
]
]
Notification subclass: GRNotification [
<category: 'Grease-Core-Exceptions'>
<comment: 'This class provides consistent initialization and exception signaling behaviour across platforms. All platforms must provide the ANSI-standard signaling protocol on this class. #signal: can therefore be safely called on any subclass.
Packages that are using Seaside-Platform should usually subclass WAPlatformNotification instead of Notification.'>
GRNotification class >> new [
<category: 'instance creation'>
^super new initialize
]
initialize [
<category: 'initialization'>
]
]
GRNotification subclass: GRDeprecatedApiNotification [
| details |
<category: 'Grease-Core-Exceptions'>
<comment: 'This notification is signaled whenever a deprecated message is sent.
see WAObject>>#seasideDeprecatedApi:details: '>
details [
<category: 'accessing'>
^details
]
details: anObject [
<category: 'accessing'>
details := anObject
]
]