I think that this problem could be solved as long as you throwed the proper exception.In case of this exception,the problem could be fixed by handled it.