Skip to content

Commit 65a03cf

Browse files
committed
Changed GError for the same reason as GObject
1 parent fd68ea9 commit 65a03cf

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

src/Geometry-Tests/GAngleTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ GAngleTest >> testMultiplication [
181181
self assert: angle * 2 equals: 180 degrees.
182182
self assert: 2 * angle equals: 180 degrees.
183183
self assert: angle * 1 equals: 90 degrees.
184-
self should: [ angle * 10 degrees ] raise: GError description: 'It should not be possible to multiple two angles'
184+
self should: [ angle * 10 degrees ] raise: GeometryError description: 'It should not be possible to multiple two angles'
185185
]
186186

187187
{ #category : #tests }

src/Geometry-Tests/GPointTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,5 +211,5 @@ GPointTest >> testTranslateBy [
211211
{ #category : #tests }
212212
GPointTest >> testWithCollection [
213213
self assert: (GPoint withCollection: #(1 2)) equals: 1 , 2.
214-
self should: [ GPoint withCollection: #() ] raise: GError
214+
self should: [ GPoint withCollection: #() ] raise: GeometryError
215215
]

src/Geometry-Tests/GPolygonTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ GPolygonTest >> testScaleBy [
251251
polygon scaleBy: 1 / 2.
252252
self assert: polygon vertices equals: {(5 , 2) . (-2 , 5) . (-5 , -5)}.
253253

254-
self should: [ polygon scaleBy: 0 ] raise: GError
254+
self should: [ polygon scaleBy: 0 ] raise: GeometryError
255255
]
256256

257257
{ #category : #tests }

src/Geometry-Tests/GRectangleTest.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ GRectangleTest >> testIntersectionsWithRay [
127127

128128
{ #category : #tests }
129129
GRectangleTest >> testVertices [
130-
self should: [ GRectangle vertices: {(1 , 1) . (2 , 2) . (3 , 5)} ] raise: GError.
131-
self should: [ GRectangle vertices: {(0 , 0) . (2 , 0) . (2 , -2) . (-1 , -2)} ] raise: GError
130+
self should: [ GRectangle vertices: {(1 , 1) . (2 , 2) . (3 , 5)} ] raise: GeometryError.
131+
self should: [ GRectangle vertices: {(0 , 0) . (2 , 0) . (2 , -2) . (-1 , -2)} ] raise: GeometryError
132132
]
133133

134134
{ #category : #tests }

src/Geometry-Tests/GTestCase.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ GTestCase >> testEquals [
5353

5454
{ #category : #tests }
5555
GTestCase >> testErrorsArePersonnalized [
56-
self should: [ self newInstance error ] raise: GError.
57-
self should: [ self newInstance error: 'Error' ] raise: GError
56+
self should: [ self newInstance error ] raise: GeometryError.
57+
self should: [ self newInstance error: 'Error' ] raise: GeometryError
5858
]

src/Geometry/GLine.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ GLine >> = line [
6767
(self isParallelTo: line) ifFalse: [ ^ false ].
6868

6969
^ [ (self yFor: 1) =~ (line yFor: 1) ]
70-
on: GError
70+
on: GeometryError
7171
do: [ "This can happen if b = 0" (self xFor: 1) =~ (line xFor: 1) ]
7272
]
7373

@@ -117,7 +117,7 @@ GLine >> distanceTo: aGPoint [
117117
{ #category : #comparing }
118118
GLine >> hash [
119119
^ ([ self yFor: 1 ]
120-
on: GError
120+
on: GeometryError
121121
do: [ "This can happen if b = 0" self xFor: 1 ]) hash
122122
]
123123

src/Geometry/GError.class.st renamed to src/Geometry/GeometryError.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Description
55
I am a common exception for the Geometry project
66
"
77
Class {
8-
#name : #GError,
8+
#name : #GeometryError,
99
#superclass : #Error,
1010
#category : #'Geometry-Exceptions'
1111
}

src/Geometry/GeometryObject.class.st

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ Class {
1212

1313
{ #category : #'error handling' }
1414
GeometryObject class >> error [
15-
GError signal
15+
GeometryError signal
1616
]
1717

1818
{ #category : #'error handling' }
1919
GeometryObject class >> error: aString [
20-
GError signal: aString
20+
GeometryError signal: aString
2121
]
2222

2323
{ #category : #'error handling' }

0 commit comments

Comments
 (0)