MetacelloVersionDefinitionError.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 05 Sep 2012 16:35:54 +0000
changeset 7 759ff40b4754
parent 1 9e312de5f694
permissions -rw-r--r--
- stx_goodies_metacello_stx added: #extensionMethodNames changed: #classNamesAndAttributes #preRequisites
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     1
"{ Package: 'stx:goodies/metacello' }"
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     2
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     3
MetacelloVersionDoesNotExistError subclass:#MetacelloVersionDefinitionError
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     4
	instanceVariableNames:'exception'
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     5
	classVariableNames:''
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     6
	poolDictionaries:''
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     7
	category:'Metacello-Core-Exceptions-Errors'
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     8
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     9
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    10
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    11
!MetacelloVersionDefinitionError methodsFor:'accessing'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    12
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    13
exception
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    14
	^ exception
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    15
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    16
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    17
exception: anObject
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    18
	exception := anObject
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    19
! !
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    20
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    21
!MetacelloVersionDefinitionError methodsFor:'printing'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    22
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    23
description
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    24
    "Return a textual description of the exception."
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    25
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    26
    ^ 'The version ' , self versionString printString , ' is not defined in ' , self project label
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    27
        , ' for the current platform, because an exception occurred while creating the version:. '
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    28
        , self exception description , '. Evaluate the following to see the error: ''['
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    29
        , self project configuration class name asString
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    30
        ,
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    31
            ' project ] 
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    32
	on: MetacelloErrorInProjectConstructionNotification 
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    33
	do: [:ex | ex resume: true ].'''
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    34
        ,
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    35
            '
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    36
Possible versions include: ' , self possibleVersions printString
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    37
! !
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    38
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    39
!MetacelloVersionDefinitionError class methodsFor:'documentation'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    40
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    41
version_SVN
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    42
    ^ '$Id::                                                                                                                        $'
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    43
! !