core/MetacelloVersionDefinitionError.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 19 Sep 2012 01:38:26 +0000
changeset 20 8caf2f257260
parent 16 25ac697dc747
permissions -rw-r--r--
- fixes for package support

"{ Package: 'stx:goodies/metacello/core' }"

MetacelloVersionDoesNotExistError subclass:#MetacelloVersionDefinitionError
	instanceVariableNames:'exception'
	classVariableNames:''
	poolDictionaries:''
	category:'Metacello-Core-Exceptions-Errors'
!


!MetacelloVersionDefinitionError methodsFor:'accessing'!

exception
	^ exception
!

exception: anObject
	exception := anObject
! !

!MetacelloVersionDefinitionError methodsFor:'printing'!

description
    "Return a textual description of the exception."

    ^ 'The version ' , self versionString printString , ' is not defined in ' , self project label
        , ' for the current platform, because an exception occurred while creating the version:. '
        , self exception description , '. Evaluate the following to see the error: ''['
        , self project configuration class name asString
        ,
            ' project ] 
	on: MetacelloErrorInProjectConstructionNotification 
	do: [:ex | ex resume: true ].'''
        ,
            '
Possible versions include: ' , self possibleVersions printString
! !

!MetacelloVersionDefinitionError class methodsFor:'documentation'!

version_SVN
    ^ '$Id::                                                                                                                        $'
! !