MetacelloErrorInProjectConstructionNotification.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
Notification subclass:#MetacelloErrorInProjectConstructionNotification
9e312de5f694 - Initial commit
jv
parents:
diff changeset
     4
	instanceVariableNames:'versionString 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-Notifications'
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
!MetacelloErrorInProjectConstructionNotification class methodsFor:'instance creation'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    12
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    13
versionString: aString exception: anException
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    14
    ^ self new
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    15
        versionString: aString;
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    16
        exception: anException;
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    17
        signal
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    18
! !
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    19
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    20
!MetacelloErrorInProjectConstructionNotification methodsFor:'accessing'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    21
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    22
exception
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    23
	^ exception
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    24
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    25
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    26
exception: anObject
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    27
	exception := anObject
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    28
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    29
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    30
versionString
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    31
	^ versionString
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    32
!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    33
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    34
versionString: anObject
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    35
	versionString := anObject
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    36
! !
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    37
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    38
!MetacelloErrorInProjectConstructionNotification methodsFor:'exception description'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    39
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    40
defaultAction
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    41
    "Answer false if you want the version recorded in the errorMap.
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    42
	Answer true if you want to go ahead and throw the error"
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    43
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    44
    ^ false
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    45
! !
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    46
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    47
!MetacelloErrorInProjectConstructionNotification class methodsFor:'documentation'!
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    48
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    49
version_SVN
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    50
    ^ '$Id::                                                                                                                        $'
9e312de5f694 - Initial commit
jv
parents:
diff changeset
    51
! !