author | convert-repo |
Fri, 20 Dec 2019 04:27:46 +0000 | |
changeset 25157 | 5801b52c6f52 |
parent 7798 | 99e0e998a4e7 |
child 17711 | 39faaaf888b4 |
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 |
" |
|
12 |
||
7145 | 13 |
"{ Package: 'stx:libbasic' }" |
14 |
||
15 |
ArgumentError subclass:#WrongNumberOfArgumentsError |
|
16 |
instanceVariableNames:'' |
|
17 |
classVariableNames:'' |
|
18 |
poolDictionaries:'' |
|
19 |
category:'Kernel-Exceptions-ExecutionErrors' |
|
20 |
! |
|
21 |
||
7231 | 22 |
!WrongNumberOfArgumentsError class methodsFor:'documentation'! |
23 |
||
7587 | 24 |
copyright |
25 |
" |
|
26 |
COPYRIGHT (c) 2003 by eXept Software AG |
|
27 |
All Rights Reserved |
|
28 |
||
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
7231 | 38 |
documentation |
39 |
" |
|
7798 | 40 |
Triggered by the VM, if a method/block is called with a wrong number of arguments. |
41 |
||
42 |
For normal method invocations (using message sends), |
|
43 |
the smalltalk compiler protects you from this error, |
|
44 |
as the number of arguments to a method is defined by the selector. |
|
45 |
However, using reflection or perform-like operations, it is possible to |
|
46 |
ask for a method to be called with the wrong number of arguments. |
|
7231 | 47 |
" |
48 |
! ! |
|
7145 | 49 |
|
7602
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
50 |
!WrongNumberOfArgumentsError class methodsFor:'initialization'! |
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
51 |
|
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
52 |
initialize |
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
53 |
NotifierString := 'wrong number of argument(s)'. |
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
54 |
! ! |
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
55 |
|
7145 | 56 |
!WrongNumberOfArgumentsError class methodsFor:'documentation'! |
57 |
||
58 |
version |
|
7798 | 59 |
^ '$Header: /cvs/stx/stx/libbasic/WrongNumberOfArgumentsError.st,v 1.5 2003-12-05 15:47:45 cg Exp $' |
7145 | 60 |
! ! |
7602
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
61 |
|
d048f13cd50a
Exception classes initialize themself.
Stefan Vogel <sv@exept.de>
parents:
7587
diff
changeset
|
62 |
WrongNumberOfArgumentsError initialize! |