Made the code throw a handled exception.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20403 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-12-01 07:20:37 +00:00
parent e8e0f1d5d0
commit d25c893d49
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2004-12-01 02:12 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassManager.m: [GormClassManager parseHeader:] altered
method to throw NSInvalidArgumentException instead of a custom
exception.
2004-11-29 23:40 Gregory John Casamento <greg_casamento@yahoo.com>
* GormPalettesManager.[hm]: [GormPalettesManager loadPalette:] now

View file

@ -1625,7 +1625,7 @@
else
{
result = NO;
[NSException raise: @"UnknownParentClass"
[NSException raise: NSInvalidArgumentException
format: @"The superclass %@ of class %@ is not known, please parse it.",
superClass, className];
}