Skip to content

Commit a0d567d

Browse files
committed
The error management mechanism for our tensors
1 parent c3d803a commit a0d567d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Class {
2+
#name : #ShapeMismatch,
3+
#superclass : #Error,
4+
#category : #'Math-Matrix'
5+
}
6+
7+
{ #category : #accessing }
8+
ShapeMismatch >> messageText [
9+
"Overwritten to initialiaze the message text to a standard text if it has not yet been set"
10+
11+
^ messageText ifNil: [ messageText := self standardMessageText ]
12+
]
13+
14+
{ #category : #printing }
15+
ShapeMismatch >> standardMessageText [
16+
"Generate a standard textual description"
17+
18+
^ 'Tensor shapes do not match'
19+
]

0 commit comments

Comments
 (0)