0
|
1 |
"{ Package: 'stx:goodies/xmlsuite/relaxng' }"
|
|
2 |
|
|
3 |
"{ NameSpace: RNG }"
|
|
4 |
|
|
5 |
Smalltalk::Error subclass:#Error
|
|
6 |
instanceVariableNames:'errorLine errorCol'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Relax NG-Exceptions'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!Error methodsFor:'accessing'!
|
|
14 |
|
|
15 |
errorCol
|
|
16 |
^ errorCol
|
|
17 |
|
|
18 |
"Created: / 14-05-2005 / 10:46:26 / janfrog"
|
|
19 |
!
|
|
20 |
|
|
21 |
errorCol:anInteger
|
|
22 |
errorCol := anInteger.
|
|
23 |
|
|
24 |
"Created: / 14-05-2005 / 10:46:26 / janfrog"
|
|
25 |
!
|
|
26 |
|
|
27 |
errorLine
|
|
28 |
^ errorLine
|
|
29 |
|
|
30 |
"Created: / 14-05-2005 / 10:46:26 / janfrog"
|
|
31 |
!
|
|
32 |
|
|
33 |
errorLine:anInteger
|
|
34 |
errorLine := anInteger.
|
|
35 |
|
|
36 |
"Created: / 14-05-2005 / 10:46:26 / janfrog"
|
|
37 |
! !
|
|
38 |
|
|
39 |
!Error methodsFor:'printing'!
|
|
40 |
|
|
41 |
description
|
|
42 |
|
|
43 |
^errorLine ifNotNil:[
|
|
44 |
errorCol ifNotNil:[
|
|
45 |
'[',errorLine printString,':',errorCol printString,'] ',self messageText
|
|
46 |
] ifNil:[
|
|
47 |
'[',errorLine printString,'] ',self messageText
|
|
48 |
]
|
|
49 |
] ifNil:[
|
|
50 |
self messageText
|
|
51 |
]
|
|
52 |
|
|
53 |
"Created: / 14-05-2005 / 11:27:06 / janfrog"
|
|
54 |
"Modified: / 14-05-2005 / 22:00:06 / janfrog"
|
|
55 |
! !
|
|
56 |
|
|
57 |
!Error class methodsFor:'documentation'!
|
|
58 |
|
|
59 |
version
|
|
60 |
^ '$Header: /opt/data/cvs/stx/goodies/xmlsuite/relaxng/RNG__Error.st,v 1.1.1.1 2005-11-01 22:07:13 vranyj1 Exp $'
|
|
61 |
! !
|