assert() should be okay, but that depends on details of other classes, so exception is probably a bit safer.