author | Jan Vrany <jan.vrany@labware.com> |
Wed, 22 Mar 2023 13:57:18 +0000 | |
branch | jv |
changeset 25445 | 1623217d2268 |
parent 17911 | a99f15c5efa5 |
permissions | -rw-r--r-- |
7587 | 1 |
" |
2 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
3 |
All Rights Reserved |
|
4 |
||
5 |
This software is furnished under a license and may be used |
|
6 |
only in accordance with the terms of that license and with the |
|
7 |
inclusion of the above copyright notice. This software may not |
|
8 |
be provided or otherwise made available to, or used by, any |
|
9 |
other person. No title to or ownership of the software is |
|
10 |
hereby transferred. |
|
11 |
" |
|
7145 | 12 |
"{ Package: 'stx:libbasic' }" |
13 |
||
14 |
ArgumentError subclass:#WrongNumberOfArgumentsError |
|
15 |
instanceVariableNames:'' |
|
16 |
classVariableNames:'' |
|
17 |
poolDictionaries:'' |
|
18 |
category:'Kernel-Exceptions-ExecutionErrors' |
|
19 |
! |
|
20 |
||
7231 | 21 |
!WrongNumberOfArgumentsError class methodsFor:'documentation'! |
22 |
||
7587 | 23 |
copyright |
24 |
" |
|
25 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
26 |
All Rights Reserved |
|
27 |
||
28 |
This software is furnished under a license and may be used |
|
29 |
only in accordance with the terms of that license and with the |
|
30 |
inclusion of the above copyright notice. This software may not |
|
31 |
be provided or otherwise made available to, or used by, any |
|
32 |
other person. No title to or ownership of the software is |
|
33 |
hereby transferred. |
|
34 |
" |
|
35 |
! |
|
36 |
||
7231 | 37 |
documentation |
38 |
" |
|
7798 | 39 |
Triggered by the VM, if a method/block is called with a wrong number of arguments. |
40 |
||
41 |
For normal method invocations (using message sends), |
|
42 |
the smalltalk compiler protects you from this error, |
|
43 |
as the number of arguments to a method is defined by the selector. |
|
44 |
However, using reflection or perform-like operations, it is possible to |
|
45 |
ask for a method to be called with the wrong number of arguments. |
|
7231 | 46 |
" |
47 |
! ! |
|
7145 | 48 |
|
7602
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
49 |
!WrongNumberOfArgumentsError class methodsFor:'initialization'! |
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
50 |
|
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
51 |
initialize |
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
52 |
NotifierString := 'wrong number of argument(s)'. |
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
53 |
! ! |
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
54 |
|
7145 | 55 |
!WrongNumberOfArgumentsError class methodsFor:'documentation'! |
56 |
||
57 |
version |
|
17892 | 58 |
^ '$Header: /cvs/stx/stx/libbasic/WrongNumberOfArgumentsError.st,v 1.5 2003/12/05 15:47:45 cg Exp $' |
17761
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
59 |
! |
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
60 |
|
b0e5971141bc
Added Lookup and BuiltinLookup classes
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
17711
diff
changeset
|
61 |
version_SVN |
17911 | 62 |
^ '$Id: WrongNumberOfArgumentsError.st 10761 2012-01-19 11:46:00Z vranyj1 $' |
7145 | 63 |
! ! |
7602
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
64 |
|
17846 | 65 |
WrongNumberOfArgumentsError initialize! |
17892 | 66 |
|
17910 | 67 |
|
17911 | 68 |