1
|
1 |
"{ Package: 'stx:goodies/metacello' }"
|
|
2 |
|
|
3 |
Error subclass:#MetacelloPackageSpecResolutionError
|
|
4 |
instanceVariableNames:'packageSpec repositories repositoryError'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'Metacello-Core-Exceptions-Errors'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!MetacelloPackageSpecResolutionError methodsFor:'accessing'!
|
|
12 |
|
|
13 |
description
|
|
14 |
"Return a textual description of the exception."
|
|
15 |
|
|
16 |
^ 'Could not resolve: ' , packageSpec name , ' [' , packageSpec file , ']' , ' in' , self repositoryString
|
|
17 |
,
|
|
18 |
(repositoryError == nil
|
|
19 |
ifTrue: [ '' ]
|
|
20 |
ifFalse: [
|
|
21 |
"report repository error to user here, since failure here is likely to be due to earlier repository error"
|
|
22 |
' ERROR: ' , repositoryError description printString ])
|
|
23 |
!
|
|
24 |
|
|
25 |
packageSpec
|
|
26 |
^ packageSpec
|
|
27 |
!
|
|
28 |
|
|
29 |
packageSpec: anObject
|
|
30 |
packageSpec := anObject
|
|
31 |
!
|
|
32 |
|
|
33 |
repositories
|
|
34 |
^ repositories
|
|
35 |
!
|
|
36 |
|
|
37 |
repositories: anObject
|
|
38 |
repositories := anObject
|
|
39 |
!
|
|
40 |
|
|
41 |
repositoryError
|
|
42 |
^ repositoryError
|
|
43 |
!
|
|
44 |
|
|
45 |
repositoryError: anObject
|
|
46 |
repositoryError := anObject
|
|
47 |
! !
|
|
48 |
|
|
49 |
!MetacelloPackageSpecResolutionError methodsFor:'private'!
|
|
50 |
|
|
51 |
repositoryString
|
|
52 |
| repositoryString |
|
|
53 |
repositoryString := ''.
|
|
54 |
self repositories do: [ :repo | repositoryString := repositoryString , ' ' , repo description ].
|
|
55 |
^ repositoryString
|
|
56 |
! !
|
|
57 |
|
|
58 |
!MetacelloPackageSpecResolutionError class methodsFor:'documentation'!
|
|
59 |
|
|
60 |
version_SVN
|
|
61 |
^ '$Id:: $'
|
|
62 |
! !
|