I don't think this is general enough to be defined here. In either case it should not raise an exception, rather it should return false.