forked from SeasideSt/Grease
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGRObject.class.st
More file actions
35 lines (29 loc) · 812 Bytes
/
GRObject.class.st
File metadata and controls
35 lines (29 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"
A common superclass that ensures consistent initialization behaviour on all platforms and provides #error: methods that signal an instance of WAPlatformError.
Packages that are using Seaside-Platform should normally subclass GRObject instead of Object.
"
Class {
#name : 'GRObject',
#superclass : 'Object',
#category : 'Grease-Core',
#package : 'Grease-Core'
}
{ #category : 'error handling' }
GRObject class >> defaultErrorClass [
^ GRError
]
{ #category : 'error handling' }
GRObject class >> error: aString [
^ self defaultErrorClass signal: aString
]
{ #category : 'instance creation' }
GRObject class >> new [
^ self basicNew initialize
]
{ #category : 'error handling' }
GRObject >> error: aString [
^ self class error: aString
]
{ #category : 'initialization' }
GRObject >> initialize [
]