Changed a const to be more consistent with Cocoa
Replaced GBBadParameterException with NSInvalidArgumentException