I have one method where I used InvalidParameterException()
class to throw the invalid parameter exception. I am used this class from GWT
client side code. When I ran this method then I got this exception
No source code is available for type java.security.InvalidParameterException; did you forget to inherit a required module?
I know why this exception is coming because I did not used any inherits module for that. But my question is that what module I used for this to run my program?
I used InvalidParameterException
from this below method
public static List<Coordinate> getIntersectionPoints(Shape shape1, Shape shape2) {
if ((shape1 != null) && (shape2 != null)) {
if ((shape1 instanceof Line) && (shape2 instanceof Line)) {
return getIntersectionPoints((Line)shape1, (Line)shape2);
}
}
throw new InvalidParameterException();
}
If I am not right then what should I do to solve this issue?