20445
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
10650
|
3 |
"
|
|
4 |
COPYRIGHT (c) 2007 by eXept Software AG
|
|
5 |
All Rights Reserved
|
|
6 |
|
|
7 |
This software is furnished under a license and may be used
|
|
8 |
only in accordance with the terms of that license and with the
|
|
9 |
inclusion of the above copyright notice. This software may not
|
|
10 |
be provided or otherwise made available to, or used by, any
|
|
11 |
other person. No title to or ownership of the software is
|
|
12 |
hereby transferred.
|
|
13 |
"
|
|
14 |
"{ Package: 'stx:libbasic' }"
|
|
15 |
|
20445
|
16 |
"{ NameSpace: Smalltalk }"
|
|
17 |
|
|
18 |
ExecutionError subclass:#AssertionFailedError
|
10650
|
19 |
instanceVariableNames:''
|
|
20 |
classVariableNames:''
|
|
21 |
poolDictionaries:''
|
11159
|
22 |
category:'Kernel-Exceptions-Errors'
|
10650
|
23 |
!
|
|
24 |
|
|
25 |
!AssertionFailedError class methodsFor:'documentation'!
|
|
26 |
|
|
27 |
copyright
|
|
28 |
"
|
|
29 |
COPYRIGHT (c) 2007 by eXept Software AG
|
|
30 |
All Rights Reserved
|
|
31 |
|
|
32 |
This software is furnished under a license and may be used
|
|
33 |
only in accordance with the terms of that license and with the
|
|
34 |
inclusion of the above copyright notice. This software may not
|
|
35 |
be provided or otherwise made available to, or used by, any
|
|
36 |
other person. No title to or ownership of the software is
|
|
37 |
hereby transferred.
|
|
38 |
"
|
|
39 |
!
|
|
40 |
|
|
41 |
documentation
|
|
42 |
"
|
|
43 |
Raised by failing assertions.
|
|
44 |
"
|
|
45 |
! !
|
|
46 |
|
20445
|
47 |
!AssertionFailedError class methodsFor:'testing'!
|
|
48 |
|
|
49 |
isProgramError
|
|
50 |
"redefined in all exceptions which are programmer's errors,
|
|
51 |
and which should probably not be ignored.
|
|
52 |
I.e. a global error handler should reject and let a debugger get control."
|
|
53 |
|
|
54 |
^ true
|
|
55 |
! !
|
|
56 |
|
22686
|
57 |
!AssertionFailedError methodsFor:'printing & storing'!
|
|
58 |
|
|
59 |
description
|
22716
|
60 |
|descr|
|
|
61 |
|
|
62 |
descr := super description.
|
|
63 |
suspendedContext notNil ifTrue:[
|
|
64 |
^ descr,' {assert in ', suspendedContext printString,'}'
|
|
65 |
].
|
|
66 |
^ descr.
|
22686
|
67 |
! !
|
|
68 |
|
10650
|
69 |
!AssertionFailedError class methodsFor:'documentation'!
|
|
70 |
|
|
71 |
version
|
20445
|
72 |
^ '$Header$'
|
10650
|
73 |
! !
|
20445
|
74 |
|