krfkeith / metacello

Automatically exported from code.google.com/p/metacello
0 stars 0 forks source link

leading trailing spaces in spec names should be flagged as input errors #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
see http://forum.world.st/trailing-space-in-package-name-td3338447.html

Original issue reported on code.google.com by henrichs...@gmail.com on 7 Mar 2011 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by henrichs...@gmail.com on 18 Jan 2012 at 6:18

GoogleCodeExporter commented 9 years ago
fixed in Metacello 1.0-beta.32 (dkh.668).

Since Issue 119 involves throwing a creation-time error, I needed to solve the 
general problem of what to do when errros occur during version creation. Errors 
that occur during project construction no longer cause a halt to the 
proceedings. Project construction proceeds, however, the version with the error 
is (obviously) not available for use. If on accesses such a version, a 
MetacelloVersionDefinitionError (a kindOf: MetacelloVersionDoesNotExistError) 
that is thrown. If you wrap project creation with the following exception 
handler:
  [ConfigurationOfExample project ] 
    on: MetacelloErrorInProjectConstructionNotification 
    do: [:ex | ex resume: true ].
  the Error is thrown immediately.

There is also a new error reasonCode (#'versionCreationError') to flag these 
errors for the validator.

Original comment by henrichs...@gmail.com on 21 Jan 2012 at 12:51