#BUGFIX by stefan
authorStefan Vogel <sv@exept.de>
Fri, 20 May 2016 10:02:12 +0200
changeset 19894 c03dc72fc13b
parent 19893 a25b1458a971
child 19895 107644108896
#BUGFIX by stefan class: AbstractTime added: #readFrom:format:language:onError: changed: #readFrom:format: more specific information in ConversionError
AbstractTime.st
--- a/AbstractTime.st	Fri May 20 10:01:32 2016 +0200
+++ b/AbstractTime.st	Fri May 20 10:02:12 2016 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1995 by Claus Gittinger
               All Rights Reserved
@@ -384,10 +382,14 @@
     ^ self 
         readFrom:aStringOrStream format:formatString language:nil 
         onError:[
-            self conversionErrorSignal raiseErrorString:'Timestamp format error'
+            self conversionErrorSignal raiseErrorString:' - Timestamp format error'
         ].
 !
 
+readFrom:aStringOrStream format:formatString language:languageString onError:exceptionalValue
+    ^ self subclassResponsibility
+!
+
 readFrom:aStringOrStream format:formatString onError:exceptionalValue
     "see format description in readFrom:format:language:onError:"
 
@@ -1036,6 +1038,7 @@
     "/ ^ aTimestamp getSeconds - self getSeconds
 ! !
 
+
 !AbstractTime methodsFor:'printing & storing'!
 
 addBasicPrintBindingsTo:aDictionary language:languageOrNil